Class BusinessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.nuclos.api.exception.BusinessException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PointerException

public class BusinessException extends Exception
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 Details

    • BusinessException

      protected BusinessException()
      for deserialization only
    • BusinessException

      public BusinessException(String pMessage)
      Constructor to intiate the new NuclosBusinessException with an error message
      Parameters:
      pMessage -
    • BusinessException

      public BusinessException(Throwable pThrowable)
      Constructor to intiate the new NuclosBusinessException with an object of type Throwable
      Parameters:
      pThrowable -
    • BusinessException

      public BusinessException(String pMessage, Throwable pThrowable)
      Constructor to intiate the new NuclosBusinessException with an object of type Throwable and an error message
      Parameters:
      pThrowable -
  • Method Details

    • getMessage

      protected static String getMessage(Throwable cause)
      This method returns the message that is used in the parameter cause of type Throwable
      Parameters:
      cause -
      Returns: