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

@@ -149,7 +149,7 @@ class Lang {
return array($segments[0], implode('.', array_slice($segments, 1)));
}
throw new \Exception("Invalid language line [$key]. A specific line must be specified.");
throw new \InvalidArgumentException("Invalid language line [$key]. A specific line must be specified.");
}
/**
@@ -188,4 +188,4 @@ class Lang {
return $this->get();
}
}
}