from fortunate.utils import ApiResult


class ApiException(Exception):

    def __init__(self, message, status=400):
        Exception.__init__(self)
        self.message = message
        self.status = status

    def to_result(self):
        return ApiResult({'message': self.message}, status=self.status)

1180c18b43a7196229e2742ae9385f2752ca6559
<mask token>


class ApiException(Exception):
    <mask token>
    <mask token>

<mask token>


class ApiException(Exception):

    def __init__(self, message, status=400):
        Exception.__init__(self)
        self.message = message
        self.status = status
    <mask token>

<mask token>


class ApiException(Exception):

    def __init__(self, message, status=400):
        Exception.__init__(self)
        self.message = message
        self.status = status

    def to_result(self):
        return ApiResult({'message': self.message}, status=self.status)

from fortunate.utils import ApiResult


class ApiException(Exception):

    def __init__(self, message, status=400):
        Exception.__init__(self)
        self.message = message
        self.status = status

    def to_result(self):
        return ApiResult({'message': self.message}, status=self.status)
