wCMF 4.1
Guides
Getting started
Architecture
Model
Persistence
Presentation
Configuration
Security
I18n & l10n
Tests
Versions
4.1.x
4.0.x
API
Classes
Hierarchy
Code
Support
home
travis
build
iherwig
wcmf
src
wcmf
lib
persistence
UnknownFieldException.php
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2020 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of the MIT License.
7
*
8
* See the LICENSE file distributed with this work for
9
* additional information.
10
*/
11
namespace
wcmf\lib\persistence
;
12
13
/**
14
* UnknownFieldException signals an unknown field.
15
*
16
* @author ingo herwig <ingo@wemove.com>
17
*/
18
class
UnknownFieldException
extends
\Exception {
19
20
private
$field =
''
;
21
22
/**
23
* Constructor
24
* @param $field The name of the field
25
* @param $message The error message
26
* @param $code The error code
27
* @param $previous The previous Exception
28
*/
29
public
function
__construct
($field, $message=
""
, $code=0, \Exception $previous=
null
) {
30
parent::__construct($message, $code, $previous);
31
$this->field = $field;
32
}
33
34
/**
35
* Get the name of the field
36
* @return String
37
*/
38
public
function
getField
() {
39
return
$this->field;
40
}
41
}
42
?>
wcmf\lib\persistence\UnknownFieldException\getField
getField()
Get the name of the field.
Definition:
UnknownFieldException.php:38
wcmf\lib\persistence
Persistence layer related interfaces and classes.
Definition:
namespaces.php:42
wcmf\lib\persistence\UnknownFieldException\__construct
__construct($field, $message="", $code=0, \Exception $previous=null)
Constructor.
Definition:
UnknownFieldException.php:29
wcmf\lib\persistence\UnknownFieldException
UnknownFieldException signals an unknown field.
Definition:
UnknownFieldException.php:18