Package de.hybris.platform.jalo
Class JaloBusinessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.hybris.platform.jalo.JaloBusinessException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CockpitBusinessException
,ConsistencyCheckException
,EJBCannotDecodePasswordException
,EJBInvalidParameterException
,EJBItemNotFoundException
,EJBMissingResourceException
,EJBPasswordEncoderNotFoundException
,EJBPriceFactoryException
,EJBSecurityException
,EJBTypecodeNotSupportedException
,EJBTypeException
,ImpExException
,JaloConnectException
,JaloDeliveryModeException
,JaloPaymentModeException
,JaloPriceFactoryException
,JaloSecurityException
,JaloTypeException
,LDAPException
public class JaloBusinessException extends java.lang.Exception
Superclass of all business exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JaloBusinessException(java.lang.String message)
Creates a new business exception.JaloBusinessException(java.lang.String message, int errorCode)
Creates a new business exception.JaloBusinessException(java.lang.Throwable nested)
Creates a new business exception.JaloBusinessException(java.lang.Throwable nested, int errorCode)
Creates a new business exception with a nested exception.JaloBusinessException(java.lang.Throwable nested, java.lang.String message, int errorCode)
Creates a new business exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getErrorCode()
Gets the error code of this exception.java.lang.Throwable
getThrowable()
Deprecated.since ages - useThrowable.getCause()
insteadjava.lang.String
toString()
Adds the error code of this exception to the output string.
-
-
-
Constructor Detail
-
JaloBusinessException
public JaloBusinessException(java.lang.Throwable nested, java.lang.String message, int errorCode)
Creates a new business exception.- Parameters:
nested
- cause exceptionmessage
- error messageerrorCode
- related error code
-
JaloBusinessException
public JaloBusinessException(java.lang.String message, int errorCode)
Creates a new business exception.- Parameters:
message
- error messageerrorCode
- related error code
-
JaloBusinessException
public JaloBusinessException(java.lang.Throwable nested, int errorCode)
Creates a new business exception with a nested exception. The new exception's message will be the same as that of the nested exception.- Parameters:
nested
- the exception that caused this exceptionerrorCode
- a unique exception code
-
JaloBusinessException
public JaloBusinessException(java.lang.Throwable nested)
Creates a new business exception.- Parameters:
nested
- the exception that caused this exception
-
JaloBusinessException
public JaloBusinessException(java.lang.String message)
Creates a new business exception.- Parameters:
message
- error message
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets the error code of this exception.- Returns:
- related error code
-
getThrowable
@Deprecated public java.lang.Throwable getThrowable()
Deprecated.since ages - useThrowable.getCause()
instead
-
toString
public java.lang.String toString()
Adds the error code of this exception to the output string.- Overrides:
toString
in classjava.lang.Throwable
-
-