Exception: UsageMod::OpenURIBadFormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/Usage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ OpenURIBadFormatError

Returns a new instance of OpenURIBadFormatError.



130
131
132
133
# File 'lib/Usage.rb', line 130

def initialize(uri)
  @uri = uri
  super("URI must be of the form: http:// or ftp://, not '#{uri}'")
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



129
130
131
# File 'lib/Usage.rb', line 129

def uri
  @uri
end