public class OslcError
extends java.lang.Object
Constructor and Description |
---|
OslcError() |
OslcError(java.lang.String statusCode,
java.lang.String message,
OslcExtendedError extendedError) |
OslcError(java.lang.String statusCode,
java.lang.String message,
java.lang.String extendedErrorURI) |
Modifier and Type | Method and Description |
---|---|
void |
setExtendedError(OslcExtendedError extendedError) |
void |
setMessage(java.lang.String message) |
void |
setStatusCode(java.lang.String statusCode) |
java.lang.String |
toJSON()
render the OslcError object as JSON
build the rdf model and then let it write itself out as JSON
|
java.lang.String |
toRDF()
render the OslcError object as RDF
build the rdf model and then let it write itself out as rdf
|
public OslcError()
public OslcError(java.lang.String statusCode, java.lang.String message, OslcExtendedError extendedError)
public OslcError(java.lang.String statusCode, java.lang.String message, java.lang.String extendedErrorURI)
public java.lang.String toJSON()
public java.lang.String toRDF()
public void setStatusCode(java.lang.String statusCode)
public void setMessage(java.lang.String message)
public void setExtendedError(OslcExtendedError extendedError)