Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public class ExternalOperationException extends Exception {
  2.  
  3. private final HttpStatus httpStatus;
  4. private final String errorMessage;
  5.  
  6. public ExternalOperationException(@Nonnull final Exception exception, @Nonnull final HttpStatus httpStatus, @Nonnull final String errorMessage) {
  7. super(exception);
  8. this.httpStatus = httpStatus;
  9. this.errorMessage = errorMessage;
  10. }
  11.  
  12. @Nonnull
  13. public HttpStatus getHttpStatus() {
  14. return httpStatus;
  15. }
  16.  
  17. @Nonnull
  18. public String getErrorMessage() {
  19. return errorMessage;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement