Exception: RSCM::Accurev::AccurevException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rscm/scm/accurev/exception.rb

Overview

General exception class for errors processing commands.

Direct Known Subclasses

StaleWorkspaceException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, error_msg = nil) ⇒ AccurevException

Returns a new instance of AccurevException.



27
28
29
30
# File 'lib/rscm/scm/accurev/exception.rb', line 27

def initialize( msg, error_msg=nil )
  super( "#{msg}: #{error_msg}" )
  @error_msg = error_msg
end

Instance Attribute Details

#error_msgObject

Error message output by accurev.

Returns:

  • (Object)

    the current value of error_msg



25
26
27
# File 'lib/rscm/scm/accurev/exception.rb', line 25

def error_msg
  @error_msg
end