Exception: JavaClass::Classpath::ClassNotFoundError
- Defined in:
- lib/javaclass/classpath/class_not_found_error.rb
Overview
An error in the classpath. The requested classfile could not be found.
- Author
-
Peter Kofler
Instance Attribute Summary collapse
-
#classname ⇒ Object
readonly
Returns the value of attribute classname.
-
#classpath ⇒ Object
readonly
Returns the value of attribute classpath.
Instance Method Summary collapse
-
#initialize(classname, classpath = nil) ⇒ ClassNotFoundError
constructor
A new instance of ClassNotFoundError.
Constructor Details
#initialize(classname, classpath = nil) ⇒ ClassNotFoundError
Returns a new instance of ClassNotFoundError.
11 12 13 14 15 |
# File 'lib/javaclass/classpath/class_not_found_error.rb', line 11 def initialize(classname, classpath=nil) @classname = classname @classpath = classpath super("class #{@classname} not found in classpath #{@classpath}") end |
Instance Attribute Details
#classname ⇒ Object (readonly)
Returns the value of attribute classname.
8 9 10 |
# File 'lib/javaclass/classpath/class_not_found_error.rb', line 8 def classname @classname end |
#classpath ⇒ Object (readonly)
Returns the value of attribute classpath.
9 10 11 |
# File 'lib/javaclass/classpath/class_not_found_error.rb', line 9 def classpath @classpath end |