karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-1040) Commands should not catch exceptions but should rethrow them
Date Thu, 24 Nov 2011 16:39:41 GMT
Commands should not catch exceptions but should rethrow them
------------------------------------------------------------

                 Key: KARAF-1040
                 URL: https://issues.apache.org/jira/browse/KARAF-1040
             Project: Karaf
          Issue Type: Bug
            Reporter: Guillaume Nodet


The exception should be catched by the console and printed nicely.
The {{dev:print-stack-traces}} allows users to actually see the stack trace, whereas if the
exception is discarded, nothing can be seen.


See the example below:
{code}
karaf@root> dev:print-stack-traces 
karaf@root> feature:add-url foo
Could not add Feature Repository:
java.lang.IllegalArgumentException: invalid URI: foo
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message