Sha256: 704130afb0c985050cc85c7e2225260c19e333078b5d6d22523d122f4b1c02c2

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

# encoding: utf-8
#
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

module Mbrao
  # The exceptions raised by mbrao.
  module Exceptions
    # Exception raised when metadata are not valid.
    class InvalidMetadata < ::Exception
    end

    # Exception raised when a date is valid.
    class InvalidDate < ::Exception
    end

    # Exception raised when there is a parsing error.
    class Parsing < ::Exception
    end

    # Exception raised when there is a rendering error.
    class Rendering < ::Exception
    end

    # Exception raised when a requested object is not available in any of the desired locales.
    class UnavailableLocalization < ::Exception
    end

    # Exception raised when a invalid parsing or rendering engine is requested.
    class UnknownEngine < ::Exception
    end

    # Exception raised when a requested method must be overridden by a subclass.
    class Unimplemented < ::Exception
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mbrao-1.1.1 lib/mbrao/exceptions.rb
mbrao-1.1.0 lib/mbrao/exceptions.rb
mbrao-1.0.3 lib/mbrao/exceptions.rb
mbrao-1.0.2 lib/mbrao/exceptions.rb
mbrao-1.0.1 lib/mbrao/exceptions.rb
mbrao-1.0.0 lib/mbrao/exceptions.rb