private AmazonServiceException createException ( String errorCode , JsonContent jsonContent ) { AmazonServiceException ase = unmarshallException ( errorCode , jsonContent ) ; if ( ase == null ) { ase = new AmazonServiceException ( "Unable to unmarshall exception response with the unmarshallers provided" ) ; } return ase ; }
Create an AmazonServiceException using the chain of unmarshallers . This method will never return null it will always return a valid AmazonServiceException