Sha256: 8f221ea8464d4efc0fb7048db6e0f9355902f570464584fa8e0bcabf19f9bd08

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

module Convoy
    INTERNAL_ERROR_EXIT_CODE = 1
    CLIENT_ERROR_EXIT_CODE   = 2
    USER_ERROR_EXIT_CODE     = 3
    EXTERNAL_ERROR_EXIT_CODE = 10

    #module to tag all exceptions coming out of Convoy with
    module Error
    end

    #all our exceptions will supported nesting other exceptions
    #also all our exception will be a kind_of? Convoy::Error
    class BaseError < StandardError
        include Nesty::NestedError
        include Error
    end

    #user did something invalid
    class UserError < BaseError
    end

    #for errors with convoy itself
    class InternalError < BaseError
    end

    #for errors with how convoy is being used
    class ClientError < BaseError
    end

    #a dependency is temporarily unavailable
    class TransientError < BaseError
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convoy-1.3.2 lib/convoy/error/error.rb
convoy-1.2.0 lib/convoy/error/error.rb