MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / __construct

Method __construct

src/php/common/ValidationException.php:9–21  ·  view source on GitHub ↗
($message, $fields = [], $code = 0, Exception $previous = null)

Source from the content-addressed store, hash-verified

7class ValidationException extends Exception
8{
9 public function __construct($message, $fields = [], $code = 0, Exception $previous = null)
10 {
11 $messageData = [
12 'message' => $message,
13 'fields' => $fields
14 ];
15
16 $jsonData = json_encode($messageData);
17
18 $message = "VALIDATION_ERROR($jsonData)";
19
20 parent::__construct($message, $code, $previous);
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected