Class BaseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.beassolution.rule.exception.base.BaseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OperationException

public class BaseException extends RuntimeException
Base exception class for the Beas Rule Engine.

This class provides a foundation for all custom exceptions in the Beas Rule Engine. It includes common fields for error tracking and provides JSON serialization support for API responses.

Key features include:

  • Timestamp tracking
  • Error code management
  • HTTP status integration
  • JSON serialization support
Since:
1.0
Version:
1.0
Author:
Beas Solution Team
See Also:
  • Constructor Details

    • BaseException

      public BaseException()
      Default constructor that initializes the timestamp.

      This constructor creates a new exception and sets the timestamp to the current date and time.

    • BaseException

      public BaseException(Throwable e)
      Constructor that wraps an existing throwable.
      Parameters:
      e - The throwable to wrap