public void encodeData(AsnOutputStream asnOS) throws MAPException { if (this.mapProviderAbortReason == null) throw new MAPException("Error while encoding MAP-ProviderAbortInfo: MapProviderAbortReason parameter has not set"); try { asnOS.writeInteger(Tag.CLASS_UNIVERSAL, Tag.ENUMERATED, this.mapProviderAbortReason.getCode()); if (this.extensionContainer != null) ((MAPExtensionContainerImpl) this.extensionContainer).encodeAll(asnOS); } catch (IOException e) { throw new MAPException("IOException when encoding MAPProviderAbortInfo: " + e.getMessage(), e); } catch (AsnException e) { throw new MAPException("AsnException when encoding MAPProviderAbortInfo: " + e.getMessage(), e); } } }
+ localAis.getTagClass() + ", tag=" + tag, MAPParsingComponentExceptionReason.MistypedParameter); int code = (int) localAis.readInteger(); this.mapProviderAbortReason = MAPProviderAbortReason.getInstance(code); if (this.mapProviderAbortReason == null) throw new MAPParsingComponentException(