Skip to content

Commit 72febae

Browse files
committed
Refactor class Format
1 parent 80cba82 commit 72febae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Format.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function __construct($data = null, $from_type = null)
8585
if (method_exists($this, '_from_' . $from_type)) {
8686
$data = $this->{'_from_' . $from_type}($data);
8787
} else {
88-
throw new Exception('Format class does not support conversion from "' . $from_type . '".');
88+
throw new \RuntimeException('Format class does not support conversion from "' . $from_type . '".');
8989
}
9090
}
9191

0 commit comments

Comments
 (0)