- Quick Start
- Client Libraries
Working with Rejections
Compared with regular Events, Rejections are defined differently. Here is the summary of the differences:
java_multiple_files fileoption must be set to
By doing so we instruct Protobuf Compiler to put all the rejection classes in one outer class.
Spine Model Compiler for Java generates
ThrowableMessage classes for all these messages.
These classes will be named after the classes of rejection messages.
Putting rejection message classes under an outer class avoids name clash inside the package.
Thus the outer class name is derived from the name of the file where rejection messages are declared.
Usually the outer class names are named using the name with the suffix
We want the name to end with
Rejections so that it is clearly visible what is inside this class.