Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'milestones/exceptions' of git://github.com/zendframewor…
Browse files Browse the repository at this point in the history
…k/zf2 into translator
  • Loading branch information
prolic committed Oct 10, 2010
6 parents 0a9c731 + 2fdcee4 + 147c99e + d77655e + a6925eb + c6443c0 commit 81c945c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Object/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function setFont($value)
{
if (is_int($value) && $value >= 1 && $value <= 5) {
if (!extension_loaded('gd')) {
throw new ExtensionNotLoaded(
throw new ExtensionNotLoadedException(
'GD extension is required to use numeric font'
);
}
Expand Down
9 changes: 9 additions & 0 deletions src/Object/Exception/ExtensionNotLoadedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Zend\Barcode\Object\Exception;

class ExtensionNotLoadedException
extends \RuntimeException
implements \Zend\Barcode\Object\Exception
{
}

0 comments on commit 81c945c

Please sign in to comment.