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

com.fireflysource.net.websocket.common.exception.ProtocolException Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.fireflysource.net.websocket.common.exception;

import com.fireflysource.net.websocket.common.model.StatusCode;

/**
 * Per spec, a protocol error should result in a Close frame of status code 1002 (PROTOCOL_ERROR)
 */
@SuppressWarnings("serial")
public class ProtocolException extends CloseException {
    public ProtocolException(String message) {
        super(StatusCode.PROTOCOL, message);
    }

    public ProtocolException(String message, Throwable t) {
        super(StatusCode.PROTOCOL, message, t);
    }

    public ProtocolException(Throwable t) {
        super(StatusCode.PROTOCOL, t);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy