public final class OperationUserError extends OperationError
Operation.Type
Constructor and Description |
---|
OperationUserError(TcapOperation op,
int invokeID,
TcapError error,
Object parameter)
Create a new operation representing an invoke provider error result.
|
Modifier and Type | Method and Description |
---|---|
TcapError |
getError()
Get the error metadata that describes the operation error.
|
String |
getName()
Get a descriptive name for this operation.
|
Object |
getParameter()
Get the parameter associated with the error.
|
Operation.Type |
getType()
Get the type of operation.
|
String |
toString() |
getInvokeID, getOperation
public OperationUserError(TcapOperation op, int invokeID, TcapError error, Object parameter)
op
- operation metadata object that identifies the operation.invokeID
- the invoke ID for the operation.error
- metadata object that identifies the user error.parameter
- optional error parameter associated with the error. May be null
.NullPointerException
- if op
or error
is null
.public Operation.Type getType()
Operation
public TcapError getError()
public Object getParameter()
null
if
no parameter was specified.public String getName()
Operation