Exception: Prick::Build::PostgresError

Inherits:
Error
  • Object
show all
Defined in:
lib/prick/builder/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, file = nil, lineno = nil, charno = nil) ⇒ PostgresError

Returns a new instance of PostgresError.



18
19
20
21
# File 'lib/prick/builder/builder.rb', line 18

def initialize(message, file = nil, lineno = nil, charno = nil)
  super(message)
  @file, @lineno, @charno = file, lineno, charno
end

Instance Attribute Details

#charnoObject (readonly)

Returns the value of attribute charno.



16
17
18
# File 'lib/prick/builder/builder.rb', line 16

def charno
  @charno
end

#fileObject (readonly)

Returns the value of attribute file.



14
15
16
# File 'lib/prick/builder/builder.rb', line 14

def file
  @file
end

#linenoObject (readonly)

Returns the value of attribute lineno.



15
16
17
# File 'lib/prick/builder/builder.rb', line 15

def lineno
  @lineno
end

Instance Method Details

#errObject



23
# File 'lib/prick/builder/builder.rb', line 23

def err = [@file, @lineno, @charno]