Package io.toro.martini.exception
Class ToroRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.toro.martini.exception.ToroRuntimeException
-
- All Implemented Interfaces:
Serializable
,MessageSourceResolvable
public class ToroRuntimeException extends RuntimeException implements MessageSourceResolvable
- Author:
- jerrickpua
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToroRuntimeException()
ToroRuntimeException(SpringMessage springMessage)
ToroRuntimeException(String s)
ToroRuntimeException(String format, Object... args)
ToroRuntimeException(String s, Throwable throwable)
ToroRuntimeException(String format, Throwable throwable, Object... args)
ToroRuntimeException(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object[]
getArguments()
String[]
getCodes()
String
getDefaultMessage()
String
getMessage()
ToroRuntimeException
setDefaultMessage(String defaultMessage)
Deprecated.ToroRuntimeException
setMessageArgs(Object... messageArgs)
Deprecated.ToroRuntimeException
setMessageCode(String... messageCode)
Deprecated.ToroRuntimeException
setMessageResolverArguments(String[] messageCode, Object[] messageArgs, String defaultMessage)
Deprecated.void
setSpringMessage(SpringMessage springMessage)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ToroRuntimeException
public ToroRuntimeException()
-
ToroRuntimeException
public ToroRuntimeException(String s)
-
ToroRuntimeException
public ToroRuntimeException(String format, Throwable throwable, Object... args)
-
ToroRuntimeException
public ToroRuntimeException(Throwable throwable)
-
ToroRuntimeException
public ToroRuntimeException(SpringMessage springMessage)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
setMessageResolverArguments
@Deprecated public ToroRuntimeException setMessageResolverArguments(String[] messageCode, Object[] messageArgs, String defaultMessage)
Deprecated.
-
setSpringMessage
public void setSpringMessage(SpringMessage springMessage)
-
setMessageArgs
@Deprecated public ToroRuntimeException setMessageArgs(Object... messageArgs)
Deprecated.
-
setMessageCode
@Deprecated public ToroRuntimeException setMessageCode(String... messageCode)
Deprecated.
-
getCodes
public String[] getCodes()
- Specified by:
getCodes
in interfaceMessageSourceResolvable
-
getArguments
public Object[] getArguments()
- Specified by:
getArguments
in interfaceMessageSourceResolvable
-
getDefaultMessage
public String getDefaultMessage()
- Specified by:
getDefaultMessage
in interfaceMessageSourceResolvable
-
setDefaultMessage
@Deprecated public ToroRuntimeException setDefaultMessage(String defaultMessage)
Deprecated.
-
-