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

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

There is a newer version: 3.0.0
Show newest version
// Generated by delombok at Wed Oct 16 22:16:04 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
   Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.exception;

/**
 * Error that occurs if the request being attempted is not valid for some reason, such as containing insufficient
 * parameters or incorrect values for those parameters.
 */
public class InvalidRequestException extends AtlanException {
    private static final long serialVersionUID = 2L;

    public InvalidRequestException(ExceptionMessageDefinition error) {
        super(error, 400);
    }

    protected InvalidRequestException(ExceptionMessageDefinition error, int statusCode) {
        super(error, statusCode);
    }

    public InvalidRequestException(ErrorCode error, String... params) {
        super(error, null, params);
    }

    public InvalidRequestException(ErrorCode error) {
        super(error, null);
    }

    public InvalidRequestException(ErrorCode error, Throwable e) {
        super(error, e);
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy