Script exceptions

A script command can return two types of exceptions: java.lang.IllegalArgumentException and java.rmi.RemoteException.

IllegalArgumentExceptions signal that your request is invalid or incorrectly formatted. In the case of invalid requests, such as removing a community by name for which no matching name can be found or adding a user to a route by community names, the exception wraps the invalid argument data. In the case that the hash-string is incorrectly formatted or cannot be parsed into the desired object, a no-arg IllegalArgumentException will be thrown. The exception java.rmi.RemoteException is used to wrap administrative run time and database exceptions.