Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.xml.bind.annotation.XmlRootElement;
- @XmlRootElement
- public class RESTAPIErrorInfo {
- public final String errorDetail;
- public final String errorMessage;
- public RESTAPIErrorInfo(Exception ex, String detail) {
- this.errorMessage = ex.getLocalizedMessage();
- this.errorDetail = detail;
- }
- }
Add Comment
Please, Sign In to add comment