
public class ErrorMessageResult extends MessageResult
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERRORSTRING |
static XDIAddress |
XDI_ADD_ERROR |
static XDIAddress |
XDI_ADD_FALSE |
static XDIArc |
XDI_ARC_FALSE |
| Modifier | Constructor and Description |
|---|---|
|
ErrorMessageResult() |
protected |
ErrorMessageResult(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageResult |
fromException(Exception ex)
Factory method that creates an XDI error message from an exception.
|
static ErrorMessageResult |
fromGraph(Graph graph)
Factory method that creates an XDI error message result bound to a given graph.
|
ContextNode |
getErrorContextNode() |
String |
getErrorString() |
Date |
getErrorTimestamp() |
static boolean |
isValid(Graph graph)
Checks if a graph is a valid XDI message result.
|
void |
setErrorOperation(Operation operation) |
void |
setErrorString(String errorString) |
void |
setErrorTimestamp(Date timestamp) |
public static final XDIAddress XDI_ADD_FALSE
public static final XDIAddress XDI_ADD_ERROR
public static final XDIArc XDI_ARC_FALSE
public static final String DEFAULT_ERRORSTRING
protected ErrorMessageResult(Graph graph)
public ErrorMessageResult()
public static boolean isValid(Graph graph)
graph - The graph to check.public static ErrorMessageResult fromGraph(Graph graph)
graph - The graph that is an XDI error message result.public static ErrorMessageResult fromException(Exception ex)
ex - The exception.public ContextNode getErrorContextNode()
public Date getErrorTimestamp()
public void setErrorTimestamp(Date timestamp)
public String getErrorString()
public void setErrorString(String errorString)
public void setErrorOperation(Operation operation)
Copyright © 2015. All Rights Reserved.