ApiException.server constructor
const
ApiException.server({
- @Default.new('Server went wrong ! Please try again later ') String msg,
Creates a server error instance, typically used for 500 status codes.
Used when the server fails to process a request due to internal errors. Default message indicates a server-side issue.
Implementation
const factory ApiException.server({@Default('Server went wrong ! Please try again later ') String msg}) = _ServerError;