withCode method

ApplicationException withCode (String code)
inherited

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