Module: SQLite3::Error

Module SQLite3::Error |
In: | lib/sqlite3/errors.rb

Methods

- check

Public Instance methods
check( result, db=nil, msg=nil )

[ show source ]

        # File lib/sqlite3/errors.rb, line 91
    91:     def check( result, db=nil, msg=nil )
    92:       unless result == Constants::ErrorCode::OK
    93:         msg = ( msg ? msg + ": " : "" ) + db.errmsg if db
    94:         raise ( EXCEPTIONS[result] || SQLite3::Exception ), msg
    95:       end
    96:     end

[Validate]