Skip to content

Do not use cause excpetion message durging wrapping #13023

@romani

Description

@romani

detected at #13016 (comment)

we should update all code to not put caught exception message to exception that we are going to throw.

        catch (ParserConfigurationException | SAXException ex) {
            throw new CheckstyleException("unable to parse " + uri
                    + " - " + ex.getMessage(), ex);
        }

should be:

        catch (ParserConfigurationException | SAXException ex) {
            throw new CheckstyleException("unable to parse " + uri, ex);
        }

we need to update all other cases like this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions