General
Implementation
/** * Default constructor. * * @param componentId * the component identifier. * @param majorNumber * the major part of the error code. * @param minorNumber * the minor part of the error code. */ private SecurityServiceNumberCode(final String componentId, final Integer majorNumber, final Integer minorNumber) { this.info = new NumberCodeInfo(componentId, majorNumber, minorNumber); }
To change the syntax of the code implement the NumberCode and create an instance in every exception that uses this special format.
You may want to consider the implementation of UuidFactory as an example.
You may want to consider the implementation of ClassPathBundleProvider as an example.
You may want to consider the implementation of DefaultMessageComposer as an example.
Add a file specifying your implementation, e.g
de.mycompany.exceptions.i18n.id.context.MySpecialI18nExceptionContext
to the following location
META-INF/services/de.smartics.exceptions.core.ExceptionContext
in your project.
For more information please refer to