Back to project page android_opengles.
The source code is released under:
MIT License
If you think the Android project android_opengles listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fi.iki.elonen; //from w w w.j a va 2 s . co m import fi.iki.elonen.WebSocketFrame.CloseCode; import java.io.IOException; public class WebSocketException extends IOException { private CloseCode code; private String reason; public WebSocketException(Exception cause) { this(CloseCode.InternalServerError, cause.toString(), cause); } public WebSocketException(CloseCode code, String reason) { this(code, reason, null); } public WebSocketException(CloseCode code, String reason, Exception cause) { super(code + ": " + reason, cause); this.code = code; this.reason = reason; } public CloseCode getCode() { return code; } public String getReason() { return reason; } }