Exception: SOCMaker::ERR::ProcessingError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/soc_maker/err.rb

Overview

Processing errors: occur during the the processing of SoCs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, o = {}) ⇒ ProcessingError

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



65
66
67
68
69
# File 'lib/soc_maker/err.rb', line 65

def initialize( message, o={} )
  super message
  @optional = o
  SOCMaker::logger.error( "Processing Error Raised: #{message}  #{ "\n\t\t" + o.inspect if o.size > 0}" )
end

Instance Attribute Details

#optinalObject (readonly)

Optional error information



58
59
60
# File 'lib/soc_maker/err.rb', line 58

def optinal
  @optinal
end

Instance Method Details

#to_sObject

Returns a string describing this error



73
74
75
# File 'lib/soc_maker/err.rb', line 73

def to_s
  "#{super} #{ "\n\t\t" + @optional.inspect if @optional.size > 0}"
end