Exception: Exceptions::OxenStandardError
- Inherits:
-
StandardError
- Object
- StandardError
- Exceptions::OxenStandardError
- Defined in:
- lib/exceptions.rb
Direct Known Subclasses
AuthenticationError, DataInputError, DeleteActionNotAllowedError, EventNotParsedYetError, EventParseError, ExcludedInstanceAllreadyGoneError, IncludedInstanceAllreadyHereError, InvalidUsername, MovingFileFailedError, NoContextFound, NoPreferredPrintersFound, ParameterArrayEmptyError, ParameterHashEmptyError, ParameterNotHashError, ParameterNotOxError, PrintJobPrinterNotAvailableError, PrintJobPrintingError, PrintJobRenderingError, PrintJobResourceError, TranslatorError, UserNotLoggedIn, WhatAnError
Instance Attribute Summary collapse
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ OxenStandardError
constructor
A new instance of OxenStandardError.
Constructor Details
#initialize(options = {}) ⇒ OxenStandardError
Returns a new instance of OxenStandardError.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/exceptions.rb', line 14 def initialize( = {}) if .is_a? String = else # @query = options[:query] # @record = options[:record] # @policy = options[:policy] # = .fetch(:message) { "OXEN says: no reason was given - error class is %s" % self.class.to_s } end super() end |
Instance Attribute Details
#policy ⇒ Object (readonly)
Returns the value of attribute policy.
12 13 14 |
# File 'lib/exceptions.rb', line 12 def policy @policy end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
12 13 14 |
# File 'lib/exceptions.rb', line 12 def query @query end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
12 13 14 |
# File 'lib/exceptions.rb', line 12 def record @record end |