Sha256: 160a589f6807f4d1c606ad491fa88bdade618e70b2293668c75230d6fc19ae8f

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

# encoding: utf-8
#
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# 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 < RuntimeError
    end

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

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

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

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mbrao-1.4.4 lib/mbrao/exceptions.rb
mbrao-1.4.3 lib/mbrao/exceptions.rb
mbrao-1.4.2 lib/mbrao/exceptions.rb
mbrao-1.4.1 lib/mbrao/exceptions.rb
mbrao-1.4.0 lib/mbrao/exceptions.rb
mbrao-1.3.0 lib/mbrao/exceptions.rb
mbrao-1.2.3 lib/mbrao/exceptions.rb
mbrao-1.2.2 lib/mbrao/exceptions.rb