Class LegacyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.hybris.platform.promotions.util.legacy.LegacyException
- All Implemented Interfaces:
Serializable
Thrown by the legacy mode checked to indicate a legacy mode violation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aLegacyExceptionwith no detail message.Constructs aLegacyExceptionwith the specified detail message.LegacyException(String message, Throwable cause) Creates aLegacyExceptionwith the specified detail message and cause.LegacyException(Throwable cause) Creates aLegacyExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LegacyException
public LegacyException()Constructs aLegacyExceptionwith no detail message. -
LegacyException
Constructs aLegacyExceptionwith the specified detail message.- Parameters:
s- the detail message.
-
LegacyException
Creates aLegacyExceptionwith 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). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
LegacyException
Creates aLegacyExceptionwith the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-