Source of file FilestackException.php

Size: 0,418 Bytes - Last Modified: 2020-04-14T16:12:35+00:00

/home/slawek/workspace/filestack/php/original-filestack-php/filestack/FilestackException.php

1234567891011121314151617181920
<?php
namespace Filestack;

/**
 * A Filestack Excepton
 */
class FilestackException extends \Exception
{
    public function __construct($message, $code = 0, Exception $previous = null)
    {
        parent::__construct($message, $code, $previous);
    }

    // custom string representation of object
    public function __toString()
    {
        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
    }
}