Exception: Pastee::Errors::UnknownError
- Inherits:
- 
      StandardError
      
        - Object
- StandardError
- Pastee::Errors::UnknownError
 
- Defined in:
- lib/pastee/errors.rb
Overview
Error for an unrecognized error code from the API.
Instance Method Summary collapse
- 
  
    
      #initialize(error_code, error_msg)  ⇒ UnknownError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UnknownError. 
- #message ⇒ Object
Constructor Details
#initialize(error_code, error_msg) ⇒ UnknownError
Returns a new instance of UnknownError.
| 5 6 7 8 | # File 'lib/pastee/errors.rb', line 5 def initialize(error_code, error_msg) @error_code = error_code @error_msg = error_msg end | 
Instance Method Details
#message ⇒ Object
| 10 11 12 | # File 'lib/pastee/errors.rb', line 10 def "Error code #{@error_code} (unknown): #{@error_msg}. Please report this unknown error to the developers of the pastee gem." end |