You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (Created) (JIRA)" <ji...@apache.org> on 2011/11/24 17:39:41 UTC

[jira] [Created] (KARAF-1040) Commands should not catch exceptions but should rethrow them

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

        

[jira] [Resolved] (KARAF-1040) Commands should not catch exceptions but should rethrow them

Posted by "Guillaume Nodet (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved KARAF-1040.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
         Assignee: Guillaume Nodet
    
> 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
>            Assignee: Guillaume Nodet
>             Fix For: 3.0.0
>
>
> 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

        

[jira] [Updated] (KARAF-1040) Commands should not catch exceptions but should rethrow them

Posted by "Guillaume Nodet (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated KARAF-1040:
-----------------------------------

    Fix Version/s: 2.3.0
    
> 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
>            Assignee: Guillaume Nodet
>             Fix For: 2.3.0, 3.0.0
>
>
> 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