Package com.mooltiverse.oss.nyx
Class NyxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.mooltiverse.oss.nyx.NyxException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataAccessException
,GitException
,IllegalPropertyException
,ReleaseException
public class NyxException extends Exception
A superclass for all Nyx specific exceptions. While coders are encouraged to catch for specific subclasses, this is also useful to catch all Nyx exceptions at once.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NyxException()
Constructs a new exception withnull
as its detail message.NyxException(String message)
Constructs a new exception with the specified detail message.NyxException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.NyxException(Throwable cause)
Constructs a new exception with the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NyxException
public NyxException()
Constructs a new exception withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.
-
NyxException
public NyxException(String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
NyxException
public NyxException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.- 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).
-
NyxException
public NyxException(Throwable cause)
Constructs a new exception with the specified cause.- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
-