FatalPodException constructor
FatalPodException(
- String? message, [
- Throwable? cause
Base class for fatal pod-related exceptions that indicate unrecoverable errors.
Fatal pod exceptions represent serious configuration or system-level problems that prevent the application context from functioning properly. These exceptions typically require immediate attention and often indicate that the application cannot continue normal operation.
Example:
// Custom fatal pod exception
class CustomFatalPodException extends FatalPodException {
CustomFatalPodException(String message) : super(message);
}
// Handling fatal exceptions
try {
applicationContext.refresh();
} catch (e) {
if (e is FatalPodException) {
print('Fatal pod error: ${e.message}');
// Log and potentially shut down application
}
}
Implementation
FatalPodException(super.message, [super.cause]);