Sha256: 25d79c8ab03832bcc3fd03f5302e984b73dc926474a6df6df584b0218efed1f3

Contents?: true

Size: 267 Bytes

Versions: 11

Compression:

Stored size: 267 Bytes

Contents

require 'genesis_ruby/errors/error'

module GenesisRuby
  # Invalid Argument Custom Error
  class InvalidArgumentError < Error

    def custom_message
      return 'The supplied argument is invalid for this method!' unless @message

      @message
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
genesis_ruby-0.2.0 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.9 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.8 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.7 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.6 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.5 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.4 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.3 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.2 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.1 lib/genesis_ruby/errors/invalid_argument_error.rb
genesis_ruby-0.1.0 lib/genesis_ruby/errors/invalid_argument_error.rb