Sha256: f96c2ca4f044df27bd49d87ee05f421b9ff2c3cb9a606fedef29fac1adf14a21

Contents?: true

Size: 299 Bytes

Versions: 22

Compression:

Stored size: 299 Bytes

Contents

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

    def to_s
      @message
    end
  end

  class UserError < UserFriendlyError; end

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

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
cloulu-1.0.0 lib/vmc/errors.rb
cloulu-0.7.0 lib/vmc/errors.rb
cloulu-0.6.6 lib/vmc/errors.rb
cloulu-0.6.5 lib/vmc/errors.rb
cloulu-0.6.1 lib/vmc/errors.rb
cloulu-0.6.0 lib/vmc/errors.rb
cloulu-0.5.1 lib/vmc/errors.rb
cloulu-0.5.0 lib/vmc/errors.rb
cloulu-0.3.0 lib/vmc/errors.rb
cloulu-0.2.6 lib/vmc/errors.rb
cloulu-0.2.5 lib/vmc/errors.rb
cloulu-0.2.4 lib/vmc/errors.rb
cloulu-0.2.3 lib/vmc/errors.rb
cloulu-0.2.1 lib/vmc/errors.rb
cloulu-0.2.0 lib/vmc/errors.rb
cloulu-0.1.6 lib/vmc/errors.rb
cloulu-0.1.5 lib/vmc/errors.rb
cloulu-0.1.2 lib/vmc/errors.rb
cloulu-0.1.1 lib/vmc/errors.rb
vmc-0.5.1 lib/vmc/errors.rb