Class LegacyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.hybris.platform.promotions.util.legacy.LegacyException
-
- All Implemented Interfaces:
java.io.Serializable
public class LegacyException extends java.lang.RuntimeExceptionThrown by the legacy mode checked to indicate a legacy mode violation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LegacyException()Constructs aLegacyExceptionwith no detail message.LegacyException(java.lang.String s)Constructs aLegacyExceptionwith the specified detail message.LegacyException(java.lang.String message, java.lang.Throwable cause)Creates aLegacyExceptionwith the specified detail message and cause.LegacyException(java.lang.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).
-
-
-
Constructor Detail
-
LegacyException
public LegacyException()
Constructs aLegacyExceptionwith no detail message.
-
LegacyException
public LegacyException(java.lang.String s)
Constructs aLegacyExceptionwith the specified detail message.- Parameters:
s- the detail message.
-
LegacyException
public LegacyException(java.lang.String message, java.lang.Throwable cause)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
public LegacyException(java.lang.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).- 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.)
-
-