Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class StarkError extends Exception {}

class ErrorElement extends StarkError
{
public $errorCode;
public $errorMessage;

public function __construct($code, $message)
{
parent::__construct($code . ": " . $message, 0, null);
Expand All @@ -21,6 +24,8 @@ public function __construct($code, $message)

class InputErrors extends StarkError
{
public $errors;

public function __construct($content)
{
parent::__construct(json_encode($content), 0, null);
Expand Down