Skip to content

Improve ConfigurationException message thrown from EsapiPropertyLoaderFactory.createPropertyLoader() #735

@kwwall

Description

@kwwall

If the passed in configuration file name has neither a suffix of ".properties" or ".xml", then this is thrown:

throw new ConfigurationException("Configuration storage type [" + fileExtension + "] is not " +
                    "supported");

This exception message does not clearly convey what is expected for the ESAPI client to do to make it work.

Describe the solution you'd like
Replace the current code, shown above, with something similar to this:

throw new ConfigurationException("Configuration path of [" + cfgPath + "] has unsupported file suffix." +
                    "Only .properties or .xml file suffix is supported.");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions