public class OslcErrorHandler
extends java.lang.Object
| Constructor and Description |
|---|
OslcErrorHandler(UserInfo userInfo) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorId(MXException me) |
java.lang.String |
getExtendedErrorURL(MXException me,
javax.servlet.http.HttpServletRequest request) |
void |
handleError(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp) |
void |
sendJsonError(OslcErrorResponse osr,
javax.servlet.http.HttpServletResponse resp,
int errorcode) |
byte[] |
serializeExtendedError(java.lang.String bmxId,
java.util.Map<java.lang.String,java.lang.String> headers) |
public OslcErrorHandler(UserInfo userInfo)
public byte[] serializeExtendedError(java.lang.String bmxId,
java.util.Map<java.lang.String,java.lang.String> headers)
throws java.rmi.RemoteException,
MXException
java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getExtendedErrorURL(MXException me, javax.servlet.http.HttpServletRequest request) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getErrorId(MXException me) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void sendJsonError(OslcErrorResponse osr, javax.servlet.http.HttpServletResponse resp, int errorcode) throws java.io.IOException
java.io.IOExceptionpublic void handleError(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse resp)