Package org.xwiki.store
Class UnexpectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.xwiki.store.UnexpectedException
-
- All Implemented Interfaces:
Serializable
public class UnexpectedException extends RuntimeException
An exception which is unreasonable to expect and is caused by misconfiguration or system failure. This is identical toRuntimeException
but subclasses it just so that it can be caught if desired.- Since:
- 3.3M1
- Version:
- $Id: db0cf3c7dbee37ea80d507a70b970f25694bd700 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedException()
Constructs a new unexpected exception with null as its detail message.UnexpectedException(String message)
Constructs a new unexpected exception with the specified detail message.UnexpectedException(String message, Throwable cause)
Constructs a new unexpected exception with the specified detail message and cause.UnexpectedException(Throwable cause)
Constructs a new unexpected 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
-
UnexpectedException
public UnexpectedException()
Constructs a new unexpected exception with null as its detail message.
-
UnexpectedException
public UnexpectedException(String message)
Constructs a new unexpected exception with the specified detail message.- Parameters:
message
- the String to explain the exception.
-
UnexpectedException
public UnexpectedException(String message, Throwable cause)
Constructs a new unexpected exception with the specified detail message and cause.- Parameters:
message
- the String to explain the exception.cause
- the Throwable which caused this exception.
-
UnexpectedException
public UnexpectedException(Throwable cause)
Constructs a new unexpected exception with the specified cause.- Parameters:
cause
- the Throwable which caused this exception.
-
-