Package com.wombat.mama
Class MamaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.wombat.mama.MamaException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MamaFieldTypeException
,MamaNoEntitlementsForUserException
,MamaNotEntitledException
public class MamaException extends java.lang.RuntimeException implements java.io.Serializable
This is the superclass for all MAMA exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MamaException(java.lang.String message)
Create aMamaException
with the specified message.MamaException(java.lang.String message, java.lang.Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.MamaException(java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message.
-
-
-
Constructor Detail
-
MamaException
public MamaException(java.lang.String message, java.lang.Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
MamaException
public MamaException(java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message. This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
cause
- the cause
-
MamaException
public MamaException(java.lang.String message)
Create aMamaException
with the specified message.- Parameters:
message
-
-
-