use of com.amazonaws.services.kinesisvideo.model.ResourceNotFoundException in project aws-sdk-android by aws-amplify.
the class ResourceNotFoundExceptionUnmarshaller method unmarshall.
@Override
public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception {
ResourceNotFoundException e = (ResourceNotFoundException) super.unmarshall(error);
e.setErrorCode("ResourceNotFoundException");
return e;
}
use of com.amazonaws.services.kinesisvideo.model.ResourceNotFoundException in project aws-iot-greengrass-edge-connector-for-kinesis-video-stream by awslabs.
the class KvsClientTest method describeStream_ResourceNotFound.
@Test
public void describeStream_ResourceNotFound() {
// when
when(amazonKinesisVideoClient.describeStream(any())).thenThrow(new ResourceNotFoundException(""));
// then
Optional<StreamInfo> result = kvsClient.describeStream(STREAM_NAME);
// verify
assertFalse(result.isPresent());
}
Aggregations