/*
 * @(#)BsdException.java
 *
 * Copyright (c) 2001-2002 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */
package com.jscape.inet.bsd;


/**
 * BsdException is thrown by many methods of Bsd r classes.  The methods are
 * masking various exception types into BsdException, but the event message
 * will be propagated.
 */
public class BsdException
        extends Exception {

    /**
     * Creates exception with specified message string.
     *
     * @param message a message describing error
     */
    public BsdException(String message) {
        super(message);
    }

    /**
     * Creates exception with specified message string and Exception.
     *
     * @param message   a message describing error
     * @param cause the Exception which caused this
     *                  <code>BsdException</code>
     */
    public BsdException(String message, Throwable cause) {
        super(message, cause);
    }

    public BsdException(Throwable cause) {
        super(cause.getMessage() != null ? cause.getMessage() : cause.toString(), cause);
    }
}
