Iva*_*van 12 scala exception notimplementedexception
Scala中常见的标准异常是什么?我特别感兴趣的是.Net的NotImplementedException等价叫做?
更新:关于the的答案NotImplementedException似乎是
org.apache.commons.lang.NotImplementedException
Dan*_*ral 10
几乎没有:
package scala {
final class MatchError(obj: Any) extends RuntimeException
final class UninitializedError extends RuntimeException("uninitialized value")
final case class UninitializedFieldError (msg: String) extends RuntimeException(msg)
package util.regex {
class SyntaxError(e: String) extends RuntimeException(e)
}
package xml {
class BrokenException() extends java.lang.Exception
case class MalformedAttributeException(msg: String) extends RuntimeException(msg)
package dtd {
case class ValidationException(e: String) extends Exception(e)
}
package include {
class CircularIncludeException(message: String) extends XIncludeException
class UnavailableResourceException(message: String) extends XIncludeException(message)
class XIncludeException(message: String) extends Exception(message)
}
package parsing {
case class FatalError(msg: String) extends java.lang.RuntimeException(msg)
}
}
}
Run Code Online (Sandbox Code Playgroud)
其余的来自Java,几乎涵盖了所有角落.它引出了这些Scala方法在其他平台上抛出的问题,不是吗?
| 归档时间: |
|
| 查看次数: |
11666 次 |
| 最近记录: |