Sha256: 58458822ec47b4abce96a657d3ce28784897a695be295b11543f855410207df7

Contents?: true

Size: 247 Bytes

Versions: 135

Compression:

Stored size: 247 Bytes

Contents

module VMC
  class UserError < RuntimeError
    def initialize(msg)
      @message = msg
    end

    def to_s
      @message
    end
  end

  class NotAuthorized < UserError
    def initialize
      @message = "Not authorized."
    end
  end
end

Version data entries

135 entries across 135 versions & 3 rubygems

Version Path
static-1.0.3 vendor/vmc-0.5.0/lib/vmc/errors.rb
af-0.5.0.beta.11 lib/vmc/errors.rb
af-0.5.0.beta.10 lib/vmc/errors.rb
static-1.0.1 vendor/vmc-0.5.0/lib/vmc/errors.rb
vmc-0.5.1.rc4 lib/vmc/errors.rb
af-0.5.0.beta.9 lib/vmc/errors.rb
af-0.5.0.beta.8 lib/vmc/errors.rb
af-0.5.0.beta.7 lib/vmc/errors.rb
af-0.5.0.beta.6 lib/vmc/errors.rb
vmc-0.5.1.rc3 lib/vmc/errors.rb
af-0.5.0.beta.5 lib/vmc/errors.rb
af-0.5.0.beta.4 lib/vmc/errors.rb
af-0.5.0.beta.3 lib/vmc/errors.rb
vmc-0.5.1.rc2 lib/vmc/errors.rb
af-0.5.0.beta.2 lib/vmc/errors.rb
af-0.5.0.beta.1 lib/vmc/errors.rb
vmc-0.5.1.rc1 lib/vmc/errors.rb
vmc-0.5.0 lib/vmc/errors.rb
vmc-0.5.0.rc4 lib/vmc/errors.rb
vmc-0.5.0.rc3 lib/vmc/errors.rb