Package io.toro.martini.exception
Class ToroException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.toro.martini.exception.ToroException
-
- All Implemented Interfaces:
Serializable
,MessageSourceResolvable
- Direct Known Subclasses:
UserUnauthorizedException
public class ToroException extends Exception implements MessageSourceResolvable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToroException()
ToroException(SpringMessage springMessage)
ToroException(String s)
ToroException(String format, Object... args)
ToroException(String s, Throwable throwable)
ToroException(String format, Throwable throwable, Object... args)
ToroException(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()
ToroException
setDefaultMessage(String defaultMessage)
Deprecated.ToroException
setMessageArgs(Object... messageArgs)
Deprecated.ToroException
setMessageCode(String... messageCode)
Deprecated.ToroException
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
-
ToroException
public ToroException()
-
ToroException
public ToroException(String s)
-
ToroException
public ToroException(Throwable throwable)
-
ToroException
public ToroException(SpringMessage springMessage)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
setMessageResolverArguments
@Deprecated public ToroException setMessageResolverArguments(String[] messageCode, Object[] messageArgs, String defaultMessage)
Deprecated.
-
setSpringMessage
public void setSpringMessage(SpringMessage springMessage)
-
setMessageArgs
@Deprecated public ToroException setMessageArgs(Object... messageArgs)
Deprecated.
-
setMessageCode
@Deprecated public ToroException 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 ToroException setDefaultMessage(String defaultMessage)
Deprecated.
-
-