public class OslcErrorHandler
extends java.lang.Object
Constructor and Description |
---|
OslcErrorHandler(UserInfo userInfo) |
Modifier and Type | Method and Description |
---|---|
static void |
errorToJson(java.util.Map<java.lang.String,java.lang.Exception> errors,
Mbo mbo) |
java.lang.String |
getErrorId(MXException me) |
java.lang.String |
getExtendedErrorURL(MXException me) |
OslcErrorResponse |
handleError(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp) |
void |
sendJsonError(OslcErrorResponse osr,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp,
int errorcode,
com.ibm.json.java.JSONObject optionsJo,
com.ibm.json.java.JSONArray params) |
static com.ibm.json.java.JSONObject |
serializeError(java.lang.String attr,
java.lang.Throwable e,
Mbo mbo,
boolean ignoreApiErrs) |
byte[] |
serializeExtendedError(java.lang.String bmxId,
java.util.Map<java.lang.String,java.lang.String> headers,
OslcRequest request) |
void |
setForErrorSerialization(boolean errser) |
void |
setNoErrorTracking(boolean noErrTracking) |
public OslcErrorHandler(UserInfo userInfo)
public void setNoErrorTracking(boolean noErrTracking)
public static void errorToJson(java.util.Map<java.lang.String,java.lang.Exception> errors, Mbo mbo)
public static com.ibm.json.java.JSONObject serializeError(java.lang.String attr, java.lang.Throwable e, Mbo mbo, boolean ignoreApiErrs)
public void setForErrorSerialization(boolean errser)
public byte[] serializeExtendedError(java.lang.String bmxId, java.util.Map<java.lang.String,java.lang.String> headers, OslcRequest request) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String getExtendedErrorURL(MXException me) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.lang.String getErrorId(MXException me) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void sendJsonError(OslcErrorResponse osr, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse resp, int errorcode, com.ibm.json.java.JSONObject optionsJo, com.ibm.json.java.JSONArray params) throws java.io.IOException
java.io.IOException
public OslcErrorResponse handleError(java.lang.Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse resp)