if ( tlv.getLength() != 1 )
{
LOG.error( I18n.err( I18n.ERR_04066 ) );
// This will generate a PROTOCOL_ERROR
throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
}
BerValue value = tlv.getValue();
try
{
int pvno = IntegerDecoder.parse( value );
if ( pvno != 5 )
{
LOG.error( I18n.err( I18n.ERR_04070, Strings.dumpBytes( value.getData() ), "The PVNO should be 5" ) );
// This will generate a PROTOCOL_ERROR
throw new DecoderException( "The PVNO should be 5" );
}
if ( IS_DEBUG )
{
LOG.debug( "pvno : {}", pvno );
}
setPvno( pvno, container );
}
catch ( IntegerDecoderException ide )
{
LOG.error( I18n.err( I18n.ERR_04070, Strings.dumpBytes( value.getData() ), ide
.getLocalizedMessage() ) );
// This will generate a PROTOCOL_ERROR
throw new DecoderException( ide.getMessage() );
}
}