com.github.smartbuf.exception.MismatchModeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartbuf Show documentation
Show all versions of smartbuf Show documentation
SmartBuf, is a cross-language serialization and deserialization framework, and it has
high performance and compression ratio like protobuf, high compatibility and scalability like json.
package com.github.smartbuf.exception;
import java.io.IOException;
/**
* MismatchModeException indicates the `mode` flag didn't match between input and output.
*
* @author sulin
* @since 2019-10-22 16:49:56
*/
public class MismatchModeException extends IOException {
public MismatchModeException(boolean localEnableStream) {
super(localEnableStream ?
"expect stream mode, but data has no-stream mode flag" :
"expect no-stream mode, but data has stream mode flag");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy