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
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 Summary
ConstructorsConstructorDescriptionDefault constructor that initializes the timestamp.Constructor that wraps an existing throwable. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
Constructor that wraps an existing throwable.- Parameters:
e
- The throwable to wrap
-