Throw better Exceptions

This commit is contained in:
Phill Sparks
2011-11-15 12:35:04 +00:00
parent d643ec97dc
commit 58638216e8
23 changed files with 53 additions and 53 deletions

View File

@@ -303,12 +303,12 @@ class Asset_Container {
if ($dependency === $asset)
{
throw new \Exception("Asset [$asset] is dependent on itself.");
throw new \LogicException("Asset [$asset] is dependent on itself.");
}
elseif (isset($assets[$dependency]) and in_array($asset, $assets[$dependency]['dependencies']))
{
throw new \Exception("Assets [$asset] and [$dependency] have a circular dependency.");
throw new \LogicException("Assets [$asset] and [$dependency] have a circular dependency.");
}
}
}
}