Package com.ptc.odata.windchill
Class WCExceptionBuilder
java.lang.Object
com.ptc.odata.windchill.WCExceptionBuilder
This builder simplifies the process of throwing localized ODataApplicationExceptions.
Use one of these methods if you have a Throwable (which is used to derive the HTTP status code):
Supported API: true
Extendable: false
- Use
buildODataApplicationException(Throwable, Locale)to use the message from the exception. - Use
buildODataApplicationException(Throwable, Locale, Class, String)to use the localized message with the inserted exception message.
- Use
buildODataApplicationException(HttpStatusCode, Locale, Class, String)to use the localized message. - Use
buildODataApplicationException(HttpStatusCode, Locale, Class, String, Object[])to use the localized message with inserted text.
buildODataApplicationException(HttpStatusCode, String, String) to specify a non-localized message.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.olingo.server.api.ODataApplicationExceptionbuildODataApplicationException(Throwable e, Locale locale) SeeWCExceptionBuilderJavaDoc for description of the methods to use.static org.apache.olingo.server.api.ODataApplicationExceptionbuildODataApplicationException(org.apache.olingo.commons.api.http.HttpStatusCode httpStatusCode, String message, String errorCode) static org.apache.olingo.server.api.ODataApplicationExceptionbuildODataApplicationException(org.apache.olingo.commons.api.http.HttpStatusCode httpStatusCode, Locale locale, Class resource, String key, Object[] textInserts)
-
Method Details
-
buildODataApplicationException
-
buildODataApplicationException
-
buildODataApplicationException
-