string - How to find source of scala.MatchError? -
i have parser program in scala sending string
, breaking string , parse. getting following error on don't know part of program wrong:
exception in thread "main" scala.matcherror: xxxx/xml/test3d.xml (of class java.lang.string)
what possibilities need check , best way solve these kind of errors?
there exact place exception occurred , described file name , line number in file. example, @ stack trace:
exception in thread "main" scala.matcherror: 7 (of class java.lang.integer) @ stackoverflow.m$.delayedendpoint$stackoverflow$m$1(functions.scala:35) @ stackoverflow.m$delayedinit$body.apply(functions.scala:30) @ scala.function0$class.apply$mcv$sp(function0.scala:40)
here can see exception cause on line 35 in functions.scala file. second line in stack trace line exception thrown. check line!
matcherror occurs whenever object doesn't match pattern of pattern matching expression.
Comments
Post a Comment