Docs Menu
API Developer Guide / middleware / pub / service / throwException

Service: throwException

This service is used to intentionally throw an exception with a specified error message and optional metadata for debugging purposes.

Input Parameter:

Name Type Description
msg: String Exception message
meta: Document Exception Information
code: String An optional error code or identifier associated with the exception.