withCode method

ApplicationException withCode (String code)

Sets a unique error code.

This method returns reference to this exception to implement Builder pattern to chain additional calls.

  • code a unique error code Returns this exception object