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

com.cloudesire.platform.apiclient.exceptions.BackendException Maven / Gradle / Ivy

package com.cloudesire.platform.apiclient.exceptions;

import com.cloudesire.platform.apiclient.response.error.ErrorResponse;

public class BackendException extends RuntimeException
{
    private final transient ErrorResponse error;

    public BackendException( String message, ErrorResponse error )
    {
        super( message );
        this.error = error;
    }

    public BackendException( String message )
    {
        super( message );
        this.error = null;
    }

    public BackendException( Throwable cause )
    {
        super( cause );
        this.error = null;
    }

    public ErrorResponse getError()
    {
        return error;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy