Package com.hotels.beans.error
Class InstanceCreationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.hotels.beans.error.InstanceCreationException
-
- All Implemented Interfaces:
Serializable
public class InstanceCreationException extends RuntimeException
Instance creation exception class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceCreationException(String message, Throwable cause)
Constructs a new instance creation exception with the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InstanceCreationException
public InstanceCreationException(String message, Throwable cause)
Constructs a new instance creation exception with the specified detail message. The cause is the call of newInstance method throws an Exception.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- the given bean is not valid and caused an exception while copying the properties.
-
-