# Path: sakuraio/software/exceptions.py
# class UnSupportedExceptions(SakuraIOClientBaseExceptions):
#     def __init__(self, type, value):
#         self.type = type
#         self.value = value
# 
#     def __str__(self):
#         return '[ERROR] {0} is unsupported {1} option.'.format(self.value, self.type)


from sakuraio.software.exceptions import UnSupportedExceptions


class ModuleMixins(object):
    def show_modules(self, project_id=None, serial_number=None, model=None, sort=None):
        sort_options = [
            None, '',
            'project', '-project',
            'name', '-name',
            'id', '-id',
            'selial_number', '-serial_number',
            'model', '-model'
            ]

        if sort not in sort_options:

# Path: sakuraio/software/exceptions.py
# class UnSupportedExceptions(SakuraIOClientBaseExceptions):
#     def __init__(self, type, value):
#         self.type = type
#         self.value = value
# 
#     def __str__(self):
#         return '[ERROR] {0} is unsupported {1} option.'.format(self.value, self.type)


# Path: sakuraio/software/apis/module.py
from sakuraio.software.exceptions import UnSupportedExceptions



class ModuleMixins(object):
    def show_modules(self, project_id=None, serial_number=None, model=None, sort=None):
        sort_options = [
            None, '',
            'project', '-project',
            'name', '-name',
            'id', '-id',
            'selial_number', '-serial_number',
            'model', '-model'
            ]

        if sort not in sort_options:

            raise UnSupportedExceptions('sort', sort)