Class ConsoleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.console.base.model.ConsoleException
-
- All Implemented Interfaces:
Serializable
public class ConsoleException extends Exception
This exception is thrown to signal to the view bean that incorrect behavior is encountered in processing a request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsoleException(String msg)Creates a Console Exception object.ConsoleException(Throwable t)Creates a Console Exception object.ConsoleException(List errors)Creates a Console Exception object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetErrors()Returns error list set in the current exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConsoleException
public ConsoleException(String msg)
Creates a Console Exception object.- Parameters:
msg- exception message.
-
ConsoleException
public ConsoleException(List errors)
Creates a Console Exception object.- Parameters:
errors- list of error messages.
-
ConsoleException
public ConsoleException(Throwable t)
Creates a Console Exception object.- Parameters:
t-Throwableinstance.
-
-
Method Detail
-
getErrors
public List getErrors()
Returns error list set in the current exception.- Returns:
- error list.
-
-