com.mocean.exception.MoceanErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moceanapisdk Show documentation
Show all versions of moceanapisdk Show documentation
This is an Mocean SDK written in java. To use it you will need a mocean account. Signup for free at
https://moceanapi.com
package com.mocean.exception;
import com.mocean.modules.ErrorResponse;
public class MoceanErrorException extends Exception {
private ErrorResponse errorResponse;
public MoceanErrorException(String errMsg) {
super(errMsg);
}
public MoceanErrorException(ErrorResponse errorResponse) {
super(errorResponse.getRawResponse());
this.errorResponse = errorResponse;
}
public ErrorResponse getErrorResponse() {
return errorResponse;
}
}