All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mocean.exception.MoceanErrorException Maven / Gradle / Ivy

Go to download

This is an Mocean SDK written in java. To use it you will need a mocean account. Signup for free at https://moceanapi.com

There is a newer version: 1.1.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy