Exception: JavaClass::Classpath::ClassNotFoundError

Inherits:
IOError
  • Object
show all
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

Instance Method Summary collapse

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

#classnameObject (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

#classpathObject (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