Class: DataObjects::SQLError

### Home Classes Methods

### In Files

- lib/data_objects/error/sql_error.rb

### Parent

DataObjects::Error

### Methods

- ::new
- #to_s

### Class/Module Index

Quicksearch

- DataObjects
- DataObjects::Command
- DataObjects::Connection
- DataObjects::ConnectionError
- DataObjects::DataError
- DataObjects::Error
- DataObjects::Extension
- DataObjects::IntegrityError
- DataObjects::Logger
- DataObjects::Logging
- DataObjects::Pooling
- DataObjects::Pooling::InvalidResourceError
- DataObjects::Pooling::Pool
- DataObjects::Quoting
- DataObjects::Reader
- DataObjects::Result
- DataObjects::SQLError
- DataObjects::SavePoint
- DataObjects::Spec
- DataObjects::Spec::PendingHelpers
- DataObjects::SyntaxError
- DataObjects::Transaction
- DataObjects::TransactionError
- DataObjects::URI
- Extlib
- Extlib::ByteArray
- CustomTextType
- MyString
- Object
- SSLHelpers

No matching classes.

# DataObjects::SQLError

### Attributes

code[R]
message[R]
query[R]
sqlstate[R]
uri[R]

### Public Class Methods

new(message, code = nil, sqlstate = nil, query = nil, uri = nil) click to toggle source

    # File lib/data_objects/error/sql_error.rb, line 10
    def initialize(message, code = nil, sqlstate = nil, query = nil, uri = nil)
      @message = message
      @code = code
      @sqlstate = sqlstate
      @query = query
      @uri = uri
    end

### Public Instance Methods

to_s() click to toggle source

    # File lib/data_objects/error/sql_error.rb, line 18
    def to_s
      "#{message} (code: #{code}, sql state: #{sqlstate}, query: #{query}, uri: #{uri})"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.