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
vmc-0.4.0.beta.76 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.75 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.74 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.73 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.72 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.71 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.70 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.69 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.68 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.67 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.66 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.65 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.64 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.63 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.62 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.61 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.60 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.59 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.58 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.57 vmc-ng/lib/vmc/errors.rb