On this page
Class InvalidPrimaryKeyException
Exception raised when the provided primary key does not match the table primary key
- Exception implements Throwable
 
 RuntimeException
   
 Cake\Datasource\Exception\InvalidPrimaryKeyException
   
Inherited Properties
code,file,line,message
Method Summary
- 
    __construct() publicConstructor.
 
Method Detail
__construct()source public
__construct( string $message , integer $code 404 , Exception|null $previous null )
   Constructor.
Parameters
- 
     string 
$message - The error message
 - 
     integer 
$codeoptional 404 - The code of the error, is also the HTTP status code for the error.
 - 
     Exception|null 
$previousoptional null - the previous exception.
 
Overrides
Exception::__construct()
  © 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
 https://api.cakephp.org/3.3/class-Cake.Datasource.Exception.InvalidPrimaryKeyException.html