Throw better Exceptions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user