Uses of Class
com.hypixel.hytale.protocol.io.ProtocolException
Packages that use ProtocolException
-
Uses of ProtocolException in com.hypixel.hytale.protocol.io
Methods in com.hypixel.hytale.protocol.io that return ProtocolExceptionModifier and TypeMethodDescriptionstatic ProtocolExceptionProtocolException.arrayTooLong(String fieldName, int actual, int max) Creates an exception for array length exceeding the maximum allowed.static ProtocolExceptionProtocolException.arrayTooShort(String fieldName, int actual, int min) Creates an exception for array length below the minimum required.static ProtocolExceptionProtocolException.bufferTooSmall(String fieldName, int required, int available) Creates an exception for buffer being too small to read the expected data.static ProtocolExceptionProtocolException.dictionaryTooLarge(String fieldName, int actual, int max) Creates an exception for dictionary count exceeding the maximum allowed.static ProtocolExceptionProtocolException.dictionaryTooSmall(String fieldName, int actual, int min) Creates an exception for dictionary count below the minimum required.static ProtocolExceptionProtocolException.duplicateKey(String fieldName, Object key) Creates an exception for duplicate dictionary key.static ProtocolExceptionProtocolException.invalidAsciiString(String fieldName) Creates an exception for a string containing non-ASCII bytes.static ProtocolExceptionProtocolException.invalidEnumValue(String enumName, int value) Creates an exception for invalid enum value.static ProtocolExceptionProtocolException.invalidOffset(String fieldName, int offset, int bufferLength) Creates an exception for invalid offset values.static ProtocolExceptionProtocolException.invalidVarInt(String fieldName) Creates an exception for invalid VarInt encoding.static ProtocolExceptionProtocolException.malformedString(String fieldName) Creates an exception for a string whose bytes are not well-formed in its declared charset.static ProtocolExceptionProtocolException.nestingTooDeep(String typeName, int max) Creates an exception for a value nested deeper than the decoder allows.static ProtocolExceptionProtocolException.nonAdvancingEntry(String fieldName, int offset) Creates an exception for a collection entry that consumes no bytes.static ProtocolExceptionProtocolException.nonCanonicalLayout(String fieldName, int actual, int expected) A writer lays the variable block out contiguously in field order, so a present field's offset slot equals the end of the previous one and an absent field's slot is -1.static ProtocolExceptionProtocolException.stringTooLong(String fieldName, int actual, int max) Creates an exception for string length exceeding the maximum allowed.static ProtocolExceptionProtocolException.stringTooShort(String fieldName, int actual, int min) Creates an exception for string length below the minimum required.static ProtocolExceptionProtocolException.unknownPolymorphicType(String typeName, int typeId) Creates an exception for unknown polymorphic type ID.static ProtocolExceptionProtocolException.valueAboveMaximum(String fieldName, Object value, double max) Creates an exception for numeric value above the maximum.static ProtocolExceptionProtocolException.valueBelowMinimum(String fieldName, Object value, double min) Creates an exception for numeric value below the minimum.static ProtocolExceptionProtocolException.valueNotFinite(String fieldName, Object value) Creates an exception for a non-finite (NaN or +/-Infinity) floating-point value.static ProtocolExceptionProtocolException.valueOutOfRange(String fieldName, Object value, double min, double max) Creates an exception for numeric value outside the allowed range.