PHP Classes

File: test/FooError.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Corner   test/FooError.php   Download  
File: test/FooError.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Corner
Implements exceptions and errors with more details
Author: By
Last change:
Date: 4 years ago
Size: 497 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Corner\Tests;

use
ParagonIE\Corner\Error;

/**
 * Class FooError
 * @package ParagonIE\Corner\Tests
 */
class FooError extends Error
{
    public function
__construct(string $message = "", int $code = 0, \Throwable $previous = null)
    {
       
parent::__construct($message, $code, $previous);
       
$this->helpfulMessage = "This is an example of the Error class";
       
$this->supportLink = "https://github.com/paragonie/corner";
    }
}