daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top