Skip to content

Commit

Permalink
Changed ChartIsAMethodException message
Browse files Browse the repository at this point in the history
  • Loading branch information
szymach committed Feb 25, 2017
1 parent 2abed8a commit 50d1c2d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Exception/ChartIsAMethodException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
*/
class ChartIsAMethodException extends FactoryException
{
protected $message = 'The requested chart is not a seperate class, to draw'
. ' it you need to call the "%s" method on the Image object'
. ' after populating it with data!'
. ' Check the documentation on library\'s website for details.'
;

/**
* @param string $method - the method which is supposed to be used
* @param int $code
* @param Exception $previous
*/
public function __construct($method, $code = null, Exception $previous = null)
{
parent::__construct(sprintf($this->message, $method), $code, $previous);
$message = 'The requested chart is not a seperate class, to draw'
. ' it you need to call the "%s" method on the Image object'
. ' after populating it with data!'
. ' Check the documentation on library\'s website for details.'
;
parent::__construct(sprintf($message, $method), $code, $previous);
}
}

0 comments on commit 50d1c2d

Please sign in to comment.