public virtual void throwException(){switch (this.type){case TYPE_UNDERFLOW:{throw new java.nio.BufferUnderflowException();}case TYPE_OVERFLOW:{throw new java.nio.BufferOverflowException();}case TYPE_UNMAPPABLE_CHAR:{throw new java.nio.charset.UnmappableCharacterException(this._length);}case TYPE_MALFORMED_INPUT:{throw new java.nio.charset.MalformedInputException(this._length);}default:{throw new java.nio.charset.CharacterCodingException();}}}