io.vertx.ext.stomp.lite.frame.InvalidConnectFrame Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-stomp-lite Show documentation
Show all versions of vertx-stomp-lite Show documentation
A simplified STOMP server for use with Vert.x
The newest version!
package io.vertx.ext.stomp.lite.frame;
import io.vertx.core.buffer.Buffer;
/**
* Created by 🤓 on 6/4/21.
*/
public class InvalidConnectFrame extends RuntimeException{
private final Buffer data;
public InvalidConnectFrame(String message, Buffer data) {
super(message);
this.data = data;
}
public InvalidConnectFrame(String message, Throwable cause, Buffer data) {
super(message, cause);
this.data = data;
}
/**
* The original connect frame before parsing sent by the client
* @return the raw data that was considered an invalid connect frame
*/
public Buffer getData() {
return data;
}
}