Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed Exception to InvalidArgumentException, added @throws in docblock

Signed-off-by: Buddhima Wijeweera <buddhimawijeweera@yahoo.com>
  • Loading branch information...
commit 0bd179606a1f3f6d2a05ee2e3beffa9ddc685958 1 parent a89332b
@Buddhima authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 libraries/joomla/html/editor.php
View
4 libraries/joomla/html/editor.php
@@ -426,6 +426,8 @@ public function setContent($editor, $html)
*
* @return array
*
+ * @throws InvalidArgumentException If plugin required does not exists
+ *
* @since 11.1
*/
public function getButtons($editor, $buttons = true)
@@ -456,7 +458,7 @@ public function getButtons($editor, $buttons = true)
}
else
{
- throw new Exception("Class does not exists "+$className);
+ throw new InvalidArgumentException("Class does not exists "+$className);
}
// Try to authenticate
Please sign in to comment.
Something went wrong with that request. Please try again.