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()StringgetDefaultMessage()StringgetMessage()ToroExceptionsetDefaultMessage(String defaultMessage)Deprecated.ToroExceptionsetMessageArgs(Object... messageArgs)Deprecated.ToroExceptionsetMessageCode(String... messageCode)Deprecated.ToroExceptionsetMessageResolverArguments(String[] messageCode, Object[] messageArgs, String defaultMessage)Deprecated.voidsetSpringMessage(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:
getMessagein 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:
getCodesin interfaceMessageSourceResolvable
-
getArguments
public Object[] getArguments()
- Specified by:
getArgumentsin interfaceMessageSourceResolvable
-
getDefaultMessage
public String getDefaultMessage()
- Specified by:
getDefaultMessagein interfaceMessageSourceResolvable
-
setDefaultMessage
@Deprecated public ToroException setDefaultMessage(String defaultMessage)
Deprecated.
-
-