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

com.atlan.exception.ApiException Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.exception;

/**
 * Error that occurs when the SDK receives a response that indicates a problem, but that the SDK currently has no
 * other way of interpreting. Basically, this is a catch-all for errors that do not fit any more specific exception.
 */
public class ApiException extends AtlanException {
    private static final long serialVersionUID = 2L;

    public ApiException(ExceptionMessageDefinition error) {
        super(error, error.getHttpErrorCode());
    }

    public ApiException(ErrorCode error, Throwable e, String... params) {
        super(error, e, params);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy