Exception: Oso::Polar::Error
- Defined in:
 - lib/oso/polar/errors.rb
 
Overview
Base error type for Oso::Polar.
Direct Known Subclasses
FFIErrorNotFound, OperationalError, ParseError, PolarRuntimeError, ValidationError
Instance Attribute Summary collapse
- 
  
    
      #stack_trace  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute stack_trace.
 
Instance Method Summary collapse
- 
  
    
      #initialize(message = nil, details: nil)  ⇒ Error 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Error.
 
Constructor Details
#initialize(message = nil, details: nil) ⇒ Error
Returns a new instance of Error.
      11 12 13 14 15  | 
    
      # File 'lib/oso/polar/errors.rb', line 11 def initialize( = nil, details: nil) @details = details @stack_trace = details&.fetch('stack_trace', nil) super() end  | 
  
Instance Attribute Details
#stack_trace ⇒ Object (readonly)
Returns the value of attribute stack_trace.
      7 8 9  | 
    
      # File 'lib/oso/polar/errors.rb', line 7 def stack_trace @stack_trace end  |