Exception: NameError
- Inherits:
- 
      StandardError
      
        - Object
- Exception
- StandardError
- NameError
 
- Defined in:
- opal/opal/corelib/error.rb,
 opal/opal/corelib/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
Instance Method Summary collapse
- 
  
    
      #initialize(message, name = nil)  ⇒ NameError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NameError. 
Methods inherited from Exception
#backtrace, exception, #exception, #inspect, #message, new, #to_s
Constructor Details
#initialize(message, name = nil) ⇒ NameError
Returns a new instance of NameError
| 128 129 130 131 | # File 'opal/opal/corelib/error.rb', line 128 def initialize(, name=nil) super @name = name end | 
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
| 126 127 128 | # File 'opal/opal/corelib/error.rb', line 126 def name @name end |