DatabaseException
        
        extends LogicException
    
    
            
            in package
            
        
    
    
    
A special type of exception related to database queries.
Table of Contents
Methods
- __construct() : mixed
 - Constructor
 - getConnectionSpec() : ConnectionSpec
 - Get the Connectionspec that was used when generating the error.
 - getSQL() : string
 - Get the SQL statement related to this exception.
 
Methods
__construct()
Constructor
    public
                    __construct(string $msg, int $number, string $sql, ConnectionSpec $connection) : mixed
    Parameters
- $msg : string
 - 
                    
The message string
 - $number : int
 - 
                    
The error number
 - $sql : string
 - 
                    
The related SQL statement, if any
 - $connection : ConnectionSpec
 
getConnectionSpec()
Get the Connectionspec that was used when generating the error.
    public
                    getConnectionSpec() : ConnectionSpec
    Return values
ConnectionSpecgetSQL()
Get the SQL statement related to this exception.
    public
                    getSQL() : string