public class OperationException extends Exception
Operation.execute(Namespace) to notify
Main.main(String[]) that the operation has
encountered a condition it cannot recover from.| Constructor and Description |
|---|
OperationException(ErrorType errorType) |
OperationException(ErrorType errorType,
Map.Entry<String,Object>... entries) |
OperationException(ErrorType errorType,
Map<String,Object> messageArguments) |
OperationException(ErrorType errorType,
Throwable cause) |
OperationException(ErrorType errorType,
Throwable cause,
Map.Entry<String,Object>... entries) |
OperationException(ErrorType errorType,
Throwable cause,
Map<String,Object> messageArguments)
Creates a chained operation exception with error identifier and message
arguments.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the error code associated with this exception
|
String |
getLocalizedMessage() |
void |
writeInWritingMapper(WritingMapper wm) |
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OperationException(ErrorType errorType)
public OperationException(ErrorType errorType, Map.Entry<String,Object>... entries)
public OperationException(ErrorType errorType, Map<String,Object> messageArguments)
public OperationException(ErrorType errorType, Throwable cause)
public OperationException(ErrorType errorType, Throwable cause, Map.Entry<String,Object>... entries)
public OperationException(ErrorType errorType, Throwable cause, Map<String,Object> messageArguments)
errorType - the error identifier.cause - the original cause.messageArguments - the arguments of the message.public int getCode()
The code should uniquely identify the error that caused the exception.
public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic void writeInWritingMapper(WritingMapper wm)
Copyright © 2015–2016 Hobrasoft s.r.o.. All rights reserved.