CPException
org.cosplay.CPException
class CPException(msg: String, cause: Option[Throwable]) extends RuntimeException
CosPlay exception.
Many methods throughout CosPlay API throw this exception. In most cases - there's no expected recovery from these errors, such errors should be considered fatal and the game should be stopped. In rare cases where such recovery is possible - the documentation specifically highlights it.
Value parameters
- cause
-
Optional case of this error. Default value is
None
. - msg
-
Error message.
Attributes
- Source
- CPException.scala
- Graph
-
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article