Package org.nuclos.api.exception
Class BusinessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nuclos.api.exception.BusinessException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PointerException
BusinessException is a general exception class for checked
exceptions in (user provided) business rules.
If a BusinessException is thrown from a (server) business rule, it is guaranteed that the exception message text is displayed to the nuclos client GUI user.
This class is used to display business process problems triggered by business rule execution to the client user.
- Author:
- Matthias Reichart
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
for deserialization onlyBusinessException
(String pMessage) Constructor to intiate the new NuclosBusinessException with an error messageBusinessException
(String pMessage, Throwable pThrowable) Constructor to intiate the new NuclosBusinessException with an object of type Throwable and an error messageBusinessException
(Throwable pThrowable) Constructor to intiate the new NuclosBusinessException with an object of type Throwable -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getMessage
(Throwable cause) This method returns the message that is used in the parameter cause of type ThrowableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BusinessException
protected BusinessException()for deserialization only -
BusinessException
Constructor to intiate the new NuclosBusinessException with an error message- Parameters:
pMessage
-
-
BusinessException
Constructor to intiate the new NuclosBusinessException with an object of type Throwable- Parameters:
pThrowable
-
-
BusinessException
Constructor to intiate the new NuclosBusinessException with an object of type Throwable and an error message- Parameters:
pThrowable
-
-
-
Method Details
-
getMessage
This method returns the message that is used in the parameter cause of type Throwable- Parameters:
cause
-- Returns:
-