Zend_Db_Adapter_Sqlsrv_Exception

category Zend
package Zend_Db
subpackage Adapter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Db_Adapter_Exception

 Methods

Overloading

__call(string $method, array $args) : mixed
Inherited

For PHP < 5.3.0, provides access to the getPrevious() method.

Parameters

$method

string

$args

array

Returns

mixed

Constructor

__construct(null|array|string $message = null, null|integer $code = 0

If $message is an array, the assumption is that the return value of sqlsrv_errors() was provided. If so, it then retrieves the most recent error from that stack, and sets the message and code based on it.

inherited_from \Zend_Db_Adapter_Exception::__construct()

Parameters

$message

nullarraystring

$code

nullinteger

Construct the exception

__construct(string $msg = '', integer $code = 0, \Exception $previous = null) : void
Inherited

Parameters

$msg

string

$code

integer

$previous

\Exception

String representation of the exception

__toString() : string
Inherited

Returns

string

getChainedException()

getChainedException() 
Inherited

hasChainedException()

hasChainedException() 
Inherited

Returns previous Exception

_getPrevious() : \Exception | null
Inherited

Returns

\Exceptionnull

 Properties

 

$_chainedException

$_chainedException 

Default

null
 

$_previous

$_previous : null | \Exception

Default

null