public static class
RepositoryException.Builder
extends Object
Builder for creating RepositoryException
Public Constructor Summary
Public Method Summary
RepositoryException |
build()
Builds an instance of
RepositoryException |
RepositoryException.Builder |
setCause(Throwable cause)
Sets
cause for exception. |
RepositoryException.Builder |
setErrorCode(int errorCode)
Sets error code for exception.
|
RepositoryException.Builder |
setErrorMessage(String errorMessage)
Sets error message for exception.
|
RepositoryException.Builder |
Inherited Method Summary
Public Constructors
public RepositoryException.Builder ()
Public Methods
public RepositoryException.Builder setCause (Throwable cause)
Sets cause
for exception.
Parameters
cause |
---|
public RepositoryException.Builder setErrorCode (int errorCode)
Sets error code for exception. Mapped to getHttpStatusCode()
Parameters
errorCode |
---|
public RepositoryException.Builder setErrorMessage (String errorMessage)
Sets error message for exception. Mapped to getErrorMessage()
Parameters
errorMessage |
---|
public RepositoryException.Builder setErrorType (RepositoryException.ErrorType errorType)
Sets error type for exception. Mapped to getType()
Parameters
errorType |
---|