31 public function toArray (): array
34 'class' => get_class($this),
35 'message' => $this->getMessage(),
36 'line' => $this->getLine(),
37 'file' => $this->getFile(),
74 public function __construct (
string $type,
int $code = 0, Throwable $previous = NULL)
78 parent::__construct(sprintf(_(
'Non-existing type "%s"!'), $this->type), $code, $previous);
81 public function toArray (): array
83 $array = parent::toArray();
85 $array[
'type'] = $this->type;
95 public function __construct (
string $branch,
int $code = 0, Throwable $previous = NULL)
97 $this->branch = $branch;
99 parent::__construct(sprintf(_(
'Non-existing branch "%s"!'), $this->branch), $code, $previous);
102 public function toArray (): array
104 $array = parent::toArray();
106 $array[
'branch'] = $this->branch;
116 public function __construct (
string $dn,
string $message = NULL,
int $code = 0, Throwable $previous = NULL)
119 if ($message === NULL) {
120 $message = sprintf(_(
'Non-existing dn "%s"!'), $this->dn);
123 parent::__construct($message, $code, $previous);
126 public function toArray (): array
128 $array = parent::toArray();
130 $array[
'dn'] = $this->dn;
138 public function __construct (
string $message =
"",
int $code = 0, Throwable $previous = NULL)
140 if ($message ===
'') {
141 $message = _(
'Filter is empty');
143 parent::__construct($message, $code, $previous);
155 public function __construct (
string $class,
int $code = 0, Throwable $previous = NULL)
157 $this->
class = $class;
159 parent::__construct(sprintf(_(
'Unknown class "%s"!'), $this->
class), $code, $previous);
162 public function toArray (): array
164 $array = parent::toArray();
166 $array[
'unknownclass'] = $this->class;
Exception class which can be thrown if an attribute is set to a value with a non-compatible type...
Parent class for all exceptions thrown in FusionDirectory.
Exception class which can be thrown by LDAP class if LDIF export fails.
Exception class which can be thrown by LDAP if the LDIF format is broken.