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

io.vertx.ext.stomp.lite.frame.InvalidConnectFrame Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy