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

net.schmizz.sshj.userauth.UserAuthException Maven / Gradle / Ivy

There is a newer version: 0.39.0
Show newest version
/*
 * Copyright (C)2009 - SSHJ Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.schmizz.sshj.userauth;

import net.schmizz.concurrent.ExceptionChainer;
import net.schmizz.sshj.common.DisconnectReason;
import net.schmizz.sshj.common.SSHException;

/** User authentication exception */
public class UserAuthException
        extends SSHException {

    public static final ExceptionChainer chainer = new ExceptionChainer() {

        @Override
        public UserAuthException chain(Throwable t) {
            if (t instanceof UserAuthException)
                return (UserAuthException) t;
            else
                return new UserAuthException(t);
        }

    };

    public UserAuthException(DisconnectReason code) {
        super(code);
    }

    public UserAuthException(DisconnectReason code, String message) {
        super(code, message);
    }

    public UserAuthException(DisconnectReason code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public UserAuthException(DisconnectReason code, Throwable cause) {
        super(code, cause);
    }

    public UserAuthException(String message) {
        super(message);
    }

    public UserAuthException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserAuthException(Throwable cause) {
        super(cause);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy