@classmethod
def from_code_and_minor(cls, currency_code, value):
    """
        Initialises the amount with a currency code and an integer value
        of minor units
        """
    from .currency import currencies
    try:
        return cls(currencies[currency_code.upper()], value)
    except KeyError:
        raise ValueError('Invalid currency code %s' % currency_code)
