Skip to content

CidEncodingException hide in cast() method #16

@crick77

Description

@crick77

CidEncodingException "hided" at line 150-156. The catch clause does not have CidEncodingException as primary exception so java.lang.Exception will catch and hide the first throw.

should change at line 156 from

catch(Exception e) { ...

with

catch(CidEncodingException cee) { // capture and rethrow
throw cee;
}
catch(Exception e) { ... // everything else
`

so in calling method we can distinguish about the two causes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions