from itm.shared.domain.errors import DomainError


class ScholarshipError(DomainError):

    def __init__(self, scholarship_id):
        self.scholarship_id = scholarship_id
        self.code = self.CODE


class IncompleteError(ScholarshipError):
    CODE = 'SCHOLARSHIP_INCOMPLETE'


class StateError(ScholarshipError):
    CODE = 'SCHOLARSHIP_STATE'


class ExpiredError(ScholarshipError):
    CODE = 'SCHOLARSHIP_EXPIRED'

e1ee052f0ce37056084a7a7e1e06e5b68fb1b796
<mask token>


class StateError(ScholarshipError):
    CODE = 'SCHOLARSHIP_STATE'


class ExpiredError(ScholarshipError):
    CODE = 'SCHOLARSHIP_EXPIRED'

<mask token>


class ScholarshipError(DomainError):
    <mask token>


class IncompleteError(ScholarshipError):
    CODE = 'SCHOLARSHIP_INCOMPLETE'


class StateError(ScholarshipError):
    CODE = 'SCHOLARSHIP_STATE'


class ExpiredError(ScholarshipError):
    CODE = 'SCHOLARSHIP_EXPIRED'

<mask token>


class ScholarshipError(DomainError):

    def __init__(self, scholarship_id):
        self.scholarship_id = scholarship_id
        self.code = self.CODE


class IncompleteError(ScholarshipError):
    CODE = 'SCHOLARSHIP_INCOMPLETE'


class StateError(ScholarshipError):
    CODE = 'SCHOLARSHIP_STATE'


class ExpiredError(ScholarshipError):
    CODE = 'SCHOLARSHIP_EXPIRED'

from itm.shared.domain.errors import DomainError


class ScholarshipError(DomainError):

    def __init__(self, scholarship_id):
        self.scholarship_id = scholarship_id
        self.code = self.CODE


class IncompleteError(ScholarshipError):
    CODE = 'SCHOLARSHIP_INCOMPLETE'


class StateError(ScholarshipError):
    CODE = 'SCHOLARSHIP_STATE'


class ExpiredError(ScholarshipError):
    CODE = 'SCHOLARSHIP_EXPIRED'
