com.fireflysource.net.websocket.common.exception.CloseException Maven / Gradle / Ivy
package com.fireflysource.net.websocket.common.exception;
@SuppressWarnings("serial")
public class CloseException extends WebSocketException {
private int statusCode;
public CloseException(int closeCode, String message) {
super(message);
this.statusCode = closeCode;
}
public CloseException(int closeCode, String message, Throwable cause) {
super(message, cause);
this.statusCode = closeCode;
}
public CloseException(int closeCode, Throwable cause) {
super(cause);
this.statusCode = closeCode;
}
public int getStatusCode() {
return statusCode;
}
}