Exception: EventStoreClient::WrongExpectedVersionError
- Defined in:
 - lib/event_store_client/errors.rb
 
Instance Attribute Summary collapse
- 
  
    
      #caused_by  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute caused_by.
 - 
  
    
      #wrong_expected_version  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute wrong_expected_version.
 
Instance Method Summary collapse
- 
  
    
      #initialize(wrong_expected_version, caused_by:)  ⇒ WrongExpectedVersionError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of WrongExpectedVersionError.
 
Methods inherited from Error
Constructor Details
#initialize(wrong_expected_version, caused_by:) ⇒ WrongExpectedVersionError
Returns a new instance of WrongExpectedVersionError.
      41 42 43 44 45  | 
    
      # File 'lib/event_store_client/errors.rb', line 41 def initialize(wrong_expected_version, caused_by:) @wrong_expected_version = wrong_expected_version @caused_by = caused_by super() end  | 
  
Instance Attribute Details
#caused_by ⇒ Object (readonly)
Returns the value of attribute caused_by.
      35 36 37  | 
    
      # File 'lib/event_store_client/errors.rb', line 35 def caused_by @caused_by end  | 
  
#wrong_expected_version ⇒ Object (readonly)
Returns the value of attribute wrong_expected_version.
      35 36 37  | 
    
      # File 'lib/event_store_client/errors.rb', line 35 def wrong_expected_version @wrong_expected_version end  |