summaryrefslogtreecommitdiffstats
path: root/src/exceptions
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-11-21 12:20:38 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-11-21 12:20:38 +0000
commit7b33df27433b00447f6ca0ca05800c88675c5d6c (patch)
treec75faee2986eaf1f5f95ccc7de46cd023cb2d966 /src/exceptions
parente09ba6aff7eaef1e7ec8335a7835864b59dc7ebf (diff)
downloadzetacomponents-graph-7b33df27433b00447f6ca0ca05800c88675c5d6c.zip
zetacomponents-graph-7b33df27433b00447f6ca0ca05800c88675c5d6c.tar.gz
- Finished: #9495 (Convert < and > in exception messages to ' and ' for Graph)
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/font_rendering.php2
-rw-r--r--src/exceptions/font_type.php2
-rw-r--r--src/exceptions/invalid_dimensions.php2
-rw-r--r--src/exceptions/invalid_display_type.php2
-rw-r--r--src/exceptions/invalid_font.php2
-rw-r--r--src/exceptions/invalid_id.php2
-rw-r--r--src/exceptions/invalid_image_file.php2
-rw-r--r--src/exceptions/ming_bitmap_boundings.php2
-rw-r--r--src/exceptions/no_such_data.php2
-rw-r--r--src/exceptions/no_such_dataset.php2
-rw-r--r--src/exceptions/no_such_element.php2
-rw-r--r--src/exceptions/out_of_boundings.php2
-rw-r--r--src/exceptions/unknown_color_definition.php2
-rw-r--r--src/exceptions/unsupported_image_type.php2
14 files changed, 14 insertions, 14 deletions
diff --git a/src/exceptions/font_rendering.php b/src/exceptions/font_rendering.php
index 1a575ae..c13ddd8 100644
--- a/src/exceptions/font_rendering.php
+++ b/src/exceptions/font_rendering.php
@@ -18,7 +18,7 @@ class ezcGraphFontRenderingException extends ezcGraphException
{
public function __construct( $string, $size, $width, $height )
{
- parent::__construct( "Could not fit string <{$string}> with font size <{$size}> in box <{$width} * {$height}>.
+ parent::__construct( "Could not fit string '{$string}' with font size '{$size}' in box '{$width} * {$height}'.
Possible solutions to solve this problem:
- Decrease the amount of steps on the axis.
- Increase the size of the chart.
diff --git a/src/exceptions/font_type.php b/src/exceptions/font_type.php
index 33cecad..584ae24 100644
--- a/src/exceptions/font_type.php
+++ b/src/exceptions/font_type.php
@@ -17,7 +17,7 @@ class ezcGraphUnknownFontTypeException extends ezcGraphException
{
public function __construct( $file, $extension )
{
- parent::__construct( "Unknown font type <{$extension}> of file <{$file}>." );
+ parent::__construct( "Unknown font type '{$extension}' of file '{$file}'." );
}
}
diff --git a/src/exceptions/invalid_dimensions.php b/src/exceptions/invalid_dimensions.php
index 3a76815..623e96f 100644
--- a/src/exceptions/invalid_dimensions.php
+++ b/src/exceptions/invalid_dimensions.php
@@ -18,7 +18,7 @@ class ezcGraphMatrixInvalidDimensionsException extends ezcGraphException
{
public function __construct( $rows, $columns, $dRows, $dColumns )
{
- parent::__construct( "Matrix <{$dRows}, {$dColumns}> is incompatible with matrix <{$rows}, {$columns}> for requested operation." );
+ parent::__construct( "Matrix '{$dRows}, {$dColumns}' is incompatible with matrix '{$rows}, {$columns}' for requested operation." );
}
}
diff --git a/src/exceptions/invalid_display_type.php b/src/exceptions/invalid_display_type.php
index 925c9f1..a91dab2 100644
--- a/src/exceptions/invalid_display_type.php
+++ b/src/exceptions/invalid_display_type.php
@@ -32,7 +32,7 @@ class ezcGraphInvalidDisplayTypeException extends ezcGraphException
$chartTypeName = 'Unknown';
}
- parent::__construct( "Invalid data set display type <$type> (<$chartTypeName>) for current chart." );
+ parent::__construct( "Invalid data set display type '$type' ('$chartTypeName') for current chart." );
}
}
diff --git a/src/exceptions/invalid_font.php b/src/exceptions/invalid_font.php
index 8376c6f..ec744b3 100644
--- a/src/exceptions/invalid_font.php
+++ b/src/exceptions/invalid_font.php
@@ -28,7 +28,7 @@ class ezcGraphInvalidFontTypeException extends ezcGraphException
: 'Unknown'
);
- parent::__construct( "Font type <{$fontName}> cannot be used with <{$driver}>." );
+ parent::__construct( "Font type '{$fontName}' cannot be used with '{$driver}'." );
}
}
diff --git a/src/exceptions/invalid_id.php b/src/exceptions/invalid_id.php
index 684aeeb..c4ab125 100644
--- a/src/exceptions/invalid_id.php
+++ b/src/exceptions/invalid_id.php
@@ -18,7 +18,7 @@ class ezcGraphSvgDriverInvalidIdException extends ezcGraphException
{
public function __construct( $id )
{
- parent::__construct( "Could not find element with id <{$id}> in SVG document." );
+ parent::__construct( "Could not find element with id '{$id}' in SVG document." );
}
}
diff --git a/src/exceptions/invalid_image_file.php b/src/exceptions/invalid_image_file.php
index 27c4ef8..b742a5f 100644
--- a/src/exceptions/invalid_image_file.php
+++ b/src/exceptions/invalid_image_file.php
@@ -17,7 +17,7 @@ class ezcGraphInvalidImageFileException extends ezcGraphException
{
public function __construct( $image )
{
- parent::__construct( "File <{$image}> is not a valid image." );
+ parent::__construct( "File '{$image}' is not a valid image." );
}
}
diff --git a/src/exceptions/ming_bitmap_boundings.php b/src/exceptions/ming_bitmap_boundings.php
index 627246e..6cc3414 100644
--- a/src/exceptions/ming_bitmap_boundings.php
+++ b/src/exceptions/ming_bitmap_boundings.php
@@ -18,7 +18,7 @@ class ezcGraphMingBitmapBoundingsException extends ezcGraphException
{
public function __construct( $imageWidth, $imageHeight, $reqWidth, $reqHeight )
{
- parent::__construct( "Ming does not support bitmap scaling, so that it is up to you to scale the image <$imageWidth> * <$imageHeight> to <$reqWidth> * <$reqHeight>." );
+ parent::__construct( "Ming does not support bitmap scaling, so that it is up to you to scale the image '$imageWidth' * '$imageHeight' to '$reqWidth' * '$reqHeight'." );
}
}
diff --git a/src/exceptions/no_such_data.php b/src/exceptions/no_such_data.php
index 7250d8f..4f4ac99 100644
--- a/src/exceptions/no_such_data.php
+++ b/src/exceptions/no_such_data.php
@@ -17,7 +17,7 @@ class ezcGraphNoSuchDataException extends ezcGraphException
{
public function __construct( $name )
{
- parent::__construct( "No data with name <{$name}> found." );
+ parent::__construct( "No data with name '{$name}' found." );
}
}
diff --git a/src/exceptions/no_such_dataset.php b/src/exceptions/no_such_dataset.php
index 5a68ea7..3ee462d 100644
--- a/src/exceptions/no_such_dataset.php
+++ b/src/exceptions/no_such_dataset.php
@@ -17,7 +17,7 @@ class ezcGraphNoSuchDataSetException extends ezcGraphException
{
public function __construct( $name )
{
- parent::__construct( "No dataset with identifier <{$name}> could be found." );
+ parent::__construct( "No dataset with identifier '{$name}' could be found." );
}
}
diff --git a/src/exceptions/no_such_element.php b/src/exceptions/no_such_element.php
index 8dd3d03..1e4d8c6 100644
--- a/src/exceptions/no_such_element.php
+++ b/src/exceptions/no_such_element.php
@@ -17,7 +17,7 @@ class ezcGraphNoSuchElementException extends ezcGraphException
{
public function __construct( $name )
{
- parent::__construct( "No chart element with name <{$name}> found." );
+ parent::__construct( "No chart element with name '{$name}' found." );
}
}
diff --git a/src/exceptions/out_of_boundings.php b/src/exceptions/out_of_boundings.php
index 8a97352..1de3f1d 100644
--- a/src/exceptions/out_of_boundings.php
+++ b/src/exceptions/out_of_boundings.php
@@ -18,7 +18,7 @@ class ezcGraphMatrixOutOfBoundingsException extends ezcGraphException
{
public function __construct( $rows, $columns, $rPos, $cPos )
{
- parent::__construct( "Position <{$rPos}, {$cPos}> is out of the matrix boundings <{$rows}, {$columns}>." );
+ parent::__construct( "Position '{$rPos}, {$cPos}' is out of the matrix boundings '{$rows}, {$columns}'." );
}
}
diff --git a/src/exceptions/unknown_color_definition.php b/src/exceptions/unknown_color_definition.php
index 9693fa4..573f9ca 100644
--- a/src/exceptions/unknown_color_definition.php
+++ b/src/exceptions/unknown_color_definition.php
@@ -18,7 +18,7 @@ class ezcGraphUnknownColorDefinitionException extends ezcGraphException
{
public function __construct( $definition )
{
- parent::__construct( "Unknown color definition <{$definition}>." );
+ parent::__construct( "Unknown color definition '{$definition}'." );
}
}
diff --git a/src/exceptions/unsupported_image_type.php b/src/exceptions/unsupported_image_type.php
index 7072287..774dc5b 100644
--- a/src/exceptions/unsupported_image_type.php
+++ b/src/exceptions/unsupported_image_type.php
@@ -47,7 +47,7 @@ class ezcGraphGdDriverUnsupportedImageTypeException extends ezcGraphException
$type = 'Unknown';
}
- parent::__construct( "Unsupported image format <{$type}>." );
+ parent::__construct( "Unsupported image format '{$type}'." );
}
}
OpenPOWER on IntegriCloud