Exception: Latexpdf::LatexpdfError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/latexpdf/errors/latexpdf_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ LatexpdfError

Returns a new instance of LatexpdfError.



5
6
7
# File 'lib/latexpdf/errors/latexpdf_error.rb', line 5

def initialize(message=nil)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/latexpdf/errors/latexpdf_error.rb', line 3

def message
  @message
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/latexpdf/errors/latexpdf_error.rb', line 9

def to_s
  self.message
end