class SOCMaker::ERR::InitError
Initialization errors: occur during the initialization of the classes. A cause for this error could be a wrong structure of the YAML file, for example wrong data types.
Attributes
optinal[R]
Optional error information
Public Class Methods
new( message, o={} )
click to toggle source
This constructor saves the message and optional infos and adds a log entry via SOCMaker::logger.error
message
-
the error message
o
-
optional error information
Calls superclass method
# File lib/soc_maker/err.rb, line 173 def initialize( message, o={} ) super message @optional = o if SOCMaker::logger SOCMaker::logger.error( "Initialization Error Raised: #{message} #{ "\n\t\t" + o.inspect if o.size > 0}" ) end end
Public Instance Methods
to_s()
click to toggle source
Returns a string describing this error
# File lib/soc_maker/err.rb, line 183 def to_s "#{super} #{ "\n\t\t" + @optional.inspect if @optional.size > 0}" end