Package score
Class UserRevertException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- score.UserRevertException
-
- All Implemented Interfaces:
java.io.Serializable
public class UserRevertException extends java.lang.RuntimeException
Signals failure of anExternal
method. If an external method is called by an external transaction or an internal transaction and the method throws an exception of this class or subclass of this class during the execution, the transaction fails and the code returned bygetCode()
is used as user failure code of the transaction. If the code is out of range, the code is clamped.User may extend this class and override
getCode()
method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserRevertException()
UserRevertException(java.lang.String message)
UserRevertException(java.lang.String message, java.lang.Throwable cause)
UserRevertException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Returns error code.
-
-
-
Constructor Detail
-
UserRevertException
public UserRevertException()
-
UserRevertException
public UserRevertException(java.lang.String message)
-
UserRevertException
public UserRevertException(java.lang.String message, java.lang.Throwable cause)
-
UserRevertException
public UserRevertException(java.lang.Throwable cause)
-
-