Package com.protegrity.ap.java
Class ProtectorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.protegrity.ap.java.ProtectorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SessionTimeoutException
Exception class for Protector API operations.
This exception signals error conditions during data protection operations and includes error codes, messages, and operation details for comprehensive error handling.
- Since:
- 1.0.0
- Author:
- Protegrity
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe error code associated with this exception.int[]Array of error codes for bulk operations.The detailed error message.intThe operation that was not accessible. -
Constructor Summary
ConstructorsConstructorDescriptionProtectorException(int errorCode, String errorMessage) Constructs a new ProtectorException with error code and message.ProtectorException(int errorCode, String errorMessage, int[] errorList) Constructs a new ProtectorException with error code, message, and error list.ProtectorException(int errorCode, String errorMessage, int[] errorList, int noAccessOperation) Constructs a new ProtectorException with full error details.ProtectorException(String errorMessage) Constructs a new ProtectorException with only an error message.ProtectorException(String message, Throwable cause) Constructs a new ProtectorException with a message and cause. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the operation that was not accessible.intReturns the error code.int[]Returns the array of error codes for bulk operations.Returns the error message.voidsetErrorCode(int errorCode) Sets the error code.voidsetErrorMessage(String errorMessage) Sets the error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorCode
public int errorCodeThe error code associated with this exception. -
errorMessage
The detailed error message. -
errorList
public int[] errorListArray of error codes for bulk operations. -
noAccessOperation
public int noAccessOperationThe operation that was not accessible.
-
-
Constructor Details
-
ProtectorException
public ProtectorException(int errorCode, String errorMessage, int[] errorList, int noAccessOperation) Constructs a new ProtectorException with full error details.- Parameters:
errorCode- the error codeerrorMessage- the error messageerrorList- array of error codes for bulk operationsnoAccessOperation- the operation that was not accessible
-
ProtectorException
Constructs a new ProtectorException with error code, message, and error list.- Parameters:
errorCode- the error codeerrorMessage- the error messageerrorList- array of error codes for bulk operations
-
ProtectorException
Constructs a new ProtectorException with error code and message.- Parameters:
errorCode- the error codeerrorMessage- the error message
-
ProtectorException
Constructs a new ProtectorException with only an error message.- Parameters:
errorMessage- the error message
-
ProtectorException
Constructs a new ProtectorException with a message and cause.- Parameters:
message- the error messagecause- the underlying cause of the exception
-
-
Method Details
-
getErrorList
public int[] getErrorList()Returns the array of error codes for bulk operations.- Returns:
- the error list array
-
getAccessOperation
public int getAccessOperation()Returns the operation that was not accessible.- Returns:
- the no-access operation code
-
getErrorCode
public int getErrorCode()Returns the error code.- Returns:
- the error code
-
setErrorCode
public void setErrorCode(int errorCode) Sets the error code.- Parameters:
errorCode- the error code to set
-
getErrorMessage
Returns the error message.- Returns:
- the error message
-
setErrorMessage
Sets the error message.- Parameters:
errorMessage- the error message to set
-
getMessage
- Overrides:
getMessagein classThrowable
-