public GenericNackException(GenericNack nack) { super(buildErrorMessage(nack)); }
/** * Asserts that a PDU response matches a PDU request. A good example is that * a PDU response may be a "Generic_Nack" to our request. * @param request The PDU request * @param response The PDU response * @throws GenericNackException Thrown if the response was a "Generic_Nack" * @throws UnexpectedPduResponseException Thrown if the response type did * not match the request type. For example, if the request was a * "submit_sm", but the response was "data_sm_resp". */ static public void assertExpectedResponse(PduRequest request, PduResponse response) throws GenericNackException, UnexpectedPduResponseException { if (request.getResponseClass().isInstance(response)) { return; } else if (response instanceof GenericNack) { throw new GenericNackException((GenericNack)response); } else { throw new UnexpectedPduResponseException(response); } } }
/** * Asserts that a PDU response matches a PDU request. A good example is that * a PDU response may be a "Generic_Nack" to our request. * @param request The PDU request * @param response The PDU response * @throws GenericNackException Thrown if the response was a "Generic_Nack" * @throws UnexpectedPduResponseException Thrown if the response type did * not match the request type. For example, if the request was a * "submit_sm", but the response was "data_sm_resp". */ static public void assertExpectedResponse(PduRequest request, PduResponse response) throws GenericNackException, UnexpectedPduResponseException { if (request.getResponseClass().isInstance(response)) { return; } else if (response instanceof GenericNack) { throw new GenericNackException((GenericNack)response); } else { throw new UnexpectedPduResponseException(response); } } }
public GenericNackException(GenericNack nack) { super(buildErrorMessage(nack)); }
/** * Asserts that a PDU response matches a PDU request. A good example is that * a PDU response may be a "Generic_Nack" to our request. * @param request The PDU request * @param response The PDU response * @throws GenericNackException Thrown if the response was a "Generic_Nack" * @throws UnexpectedPduResponseException Thrown if the response type did * not match the request type. For example, if the request was a * "submit_sm", but the response was "data_sm_resp". */ static public void assertExpectedResponse(PduRequest request, PduResponse response) throws GenericNackException, UnexpectedPduResponseException { if (request.getResponseClass().isInstance(response)) { return; } else if (response instanceof GenericNack) { throw new GenericNackException((GenericNack)response); } else { throw new UnexpectedPduResponseException(response); } } }
public GenericNackException(GenericNack nack) { super(buildErrorMessage(nack)); }
/** * Asserts that a PDU response matches a PDU request. A good example is that * a PDU response may be a "Generic_Nack" to our request. * @param request The PDU request * @param response The PDU response * @throws GenericNackException Thrown if the response was a "Generic_Nack" * @throws UnexpectedPduResponseException Thrown if the response type did * not match the request type. For example, if the request was a * "submit_sm", but the response was "data_sm_resp". */ static public void assertExpectedResponse(PduRequest request, PduResponse response) throws GenericNackException, UnexpectedPduResponseException { if (request.getResponseClass().isInstance(response)) { return; } else if (response instanceof GenericNack) { throw new GenericNackException((GenericNack)response); } else { throw new UnexpectedPduResponseException(response); } } }
public GenericNackException(GenericNack nack) { super(buildErrorMessage(nack)); }