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.56 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.55 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.54 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.53 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.52 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.51 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.50 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.49 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.48 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.47 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.46 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.45 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.44 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.43 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.42 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.41 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.40 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.39 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.38 vmc-ng/lib/vmc/errors.rb
vmc-0.4.0.beta.37 vmc-ng/lib/vmc/errors.rb