/FileExtraction/Java_unseen/InsightIM_Tok-Android/ChatCore/src/main/java/im/tox/tox4j/av/exceptions/ToxavCallException.java
package im.tox.tox4j.av.exceptions;

import im.tox.tox4j.exceptions.ToxException;

public final class ToxavCallException extends ToxException {

    public enum Code {
        /**
         * Attempted to call a friend while already in an audio or video call with them.
         */
        FRIEND_ALREADY_IN_CALL,
        /**
         * The friend was valid, but not currently connected.
         */
        FRIEND_NOT_CONNECTED,
        /**
         * The friend number did not designate a valid friend.
         */
        FRIEND_NOT_FOUND,
        /**
         * Audio or video bit rate is invalid.
         */
        INVALID_BIT_RATE,
        /**
         * A memory allocation error occurred.
         */
        MALLOC,
        /**
         * Synchronization error occurred.
         */
        SYNC,
    }

    public ToxavCallException(Code code) {
        this(code, "");
    }

    public ToxavCallException(Code code, String message) {
        super(code, message);
    }
}
