25161c0c18
* kinesisvideo create_stream * add kinesis video stream description * add kinesisvideo describe_stream * add kinesisvideo list_streams * add kinesisvideo delete_stream * remove unused comment * remove duplicated definition * add kinesis video exceptions * pass region_name to kinesisvideo client in test * fix kinesisvideo url path * resolve conflict of kinesisvideo url and kinesis url * specify region name to kinesisvideobackend * Add get-dataendpoint to kinesisvideo * include stream name in ResourceInUseException of kinesisvideo * use ACCOUNT_ID from moto.core in kinesisvideo * add server test for kinesisvideo * split up kinesisvideo test
25 lines
648 B
Python
25 lines
648 B
Python
from __future__ import unicode_literals
|
|
|
|
from moto.core.exceptions import RESTError
|
|
|
|
|
|
class KinesisvideoClientError(RESTError):
|
|
code = 400
|
|
|
|
|
|
class ResourceNotFoundException(KinesisvideoClientError):
|
|
def __init__(self):
|
|
self.code = 404
|
|
super(ResourceNotFoundException, self).__init__(
|
|
"ResourceNotFoundException",
|
|
"The requested stream is not found or not active.",
|
|
)
|
|
|
|
|
|
class ResourceInUseException(KinesisvideoClientError):
|
|
def __init__(self, message):
|
|
self.code = 400
|
|
super(ResourceInUseException, self).__init__(
|
|
"ResourceInUseException", message,
|
|
)
|