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

com.joyent.http.signature.CryptoException Maven / Gradle / Ivy

/*
 * Copyright (c) 2015-2017, Joyent, Inc. All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.joyent.http.signature;

/**
 * Runtime exception thrown when there was a problem processing cryptography.
 *
 * @author Elijah Zupancic
 * @since 1.0.0
 */
public class CryptoException extends HttpSignatureException {

    private static final long serialVersionUID = -3558219358777167268L;

    /**
     * Creates a new exception.
     */
    public CryptoException() {
    }

    /**
     * Creates a new exception with the specified message.
     * @param message Message to embed
     */
    public CryptoException(final String message) {
        super(message);
    }

    /**
     * Creates a new chained exception with the specified message.
     *
     * @param message Message to embed
     * @param cause exception to chain
     */
    public CryptoException(final String message, final Throwable cause) {
        super(message, cause);
    }

    /**
     * Creates a new chained exception.
     *
     * @param cause exception to chain
     */
    public CryptoException(final Throwable cause) {
        super(cause);
    }

    /**
     * Creates a exception with the specified message, cause,
     * suppression enabled or disabled, and writable stack trace enabled
     * or disabled.
     *
     * @param message Message to embed
     * @param cause exception to chain
     * @param enableSuppression whether or not suppression is enabled or disabled
     * @param writableStackTrace whether or not the stack trace should be writable
     */
    public CryptoException(final String message,
                           final Throwable cause,
                           final boolean enableSuppression,
                           final boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy