java.lang.Object
java.lang.Throwable
java.lang.Exception
exceptions.PayrollException
- All Implemented Interfaces:
Serializable
An exception class for payroll-related errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPayrollException
(String message, Throwable cause) Constructs a new PayrollException with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Throws a PayrollException for the case when payroll run fails.static void
Throws a PayrollException for the case of an invalid manual payroll data.static void
Throws a PayrollException for the case of an invalid search field.static void
Throws a PayrollException for the case when no payroll is processed for a period.static void
Throws a PayrollException for the case when no record is found.static void
Throws a PayrollException for the case when payroll is already processed for a period.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PayrollException
Constructs a new PayrollException with the specified detail message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by the getMessage() method)cause
- the cause (which is saved for later retrieval by the getCause() method)
-
-
Method Details
-
throwError_NO_RECORD_FOUND
Throws a PayrollException for the case when no record is found.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-
throwError_NO_PAYROLL_PROCESSED
Throws a PayrollException for the case when no payroll is processed for a period.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-
throwError_FAILED_PAYROLL
Throws a PayrollException for the case when payroll run fails.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-
throwError_PAYROLL_ALREADY_PROCESSED
Throws a PayrollException for the case when payroll is already processed for a period.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-
throwError_INVALID_SEARCH_FIELD
Throws a PayrollException for the case of an invalid search field.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-
throwError_INVALID_MANUAL_PAYROLL_DATA
Throws a PayrollException for the case of an invalid manual payroll data.- Throws:
PayrollException
- the PayrollException with the corresponding error message
-