Package com.queomedia.commons.exceptions
Class NotImplementedCaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.queomedia.commons.exceptions.NotImplementedException
-
- com.queomedia.commons.exceptions.NotImplementedCaseException
-
- All Implemented Interfaces:
Serializable
public class NotImplementedCaseException extends NotImplementedException
This exception indicates that a case (typical in aswitchstatement) is not implemented.A typical use case is a
switchstatement for anenumg. In such a switch statement throw this exception in thedefaultcaseswitch(demoEnum) { case A: return somethingBecauseA(); case B: return somethingBecauseA(); default: throw new NotImplementedCaseException(demoEnum); }- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotImplementedCaseException()Instantiates a new not implmented case execption.NotImplementedCaseException(Enum<?> enumCase)The Constructor.NotImplementedCaseException(String message)The Constructor.NotImplementedCaseException(String message, Throwable cause)The Constructor.NotImplementedCaseException(Throwable cause)The Constructor.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NotImplementedCaseException
public NotImplementedCaseException()
Instantiates a new not implmented case execption.
-
NotImplementedCaseException
public NotImplementedCaseException(String message, Throwable cause)
The Constructor.- Parameters:
message- the messagecause- the cause
-
NotImplementedCaseException
public NotImplementedCaseException(String message)
The Constructor.- Parameters:
message- the message
-
NotImplementedCaseException
public NotImplementedCaseException(Throwable cause)
The Constructor.- Parameters:
cause- the cause
-
NotImplementedCaseException
public NotImplementedCaseException(Enum<?> enumCase)
The Constructor.- Parameters:
enumCase- the enum case
-
-