# Path: crosscompute/exceptions.py
# class CrossComputeError(Exception):
# class CrossComputeConfigurationError(CrossComputeError):
# class CrossComputeConfigurationNotFoundError(CrossComputeConfigurationError):
# class CrossComputeConfigurationFormatError(CrossComputeError):
# class CrossComputeDataError(CrossComputeError):
# class CrossComputeExecutionError(CrossComputeError):
#     def __str__(self):


from crosscompute.exceptions import DataTypeError
from crosscompute.types import DataType
from pytest import raises


class ADataType(DataType):

    @classmethod
    def load(Class, path):
        if path == 'x':
            raise Exception
        instance = Class()
        instance.path = path
        return instance

    @classmethod
    def parse(Class, x, default_value=None):
        if x == 'd':

# Path: crosscompute/exceptions.py
# class CrossComputeError(Exception):
# class CrossComputeConfigurationError(CrossComputeError):
# class CrossComputeConfigurationNotFoundError(CrossComputeConfigurationError):
# class CrossComputeConfigurationFormatError(CrossComputeError):
# class CrossComputeDataError(CrossComputeError):
# class CrossComputeExecutionError(CrossComputeError):
#     def __str__(self):


# Path: experiments/0.7/tests/x_types.py
from crosscompute.exceptions import DataTypeError
from crosscompute.types import DataType
from pytest import raises



class ADataType(DataType):

    @classmethod
    def load(Class, path):
        if path == 'x':
            raise Exception
        instance = Class()
        instance.path = path
        return instance

    @classmethod
    def parse(Class, x, default_value=None):
        if x == 'd':

            raise DataTypeError