EventFluxException class

Represents exceptions specific to EventFlux operations.

EventFluxException is used to encapsulate errors that occur during EventFlux connection and data handling processes. It implements Dart's Exception interface, allowing it to be used in exception handling structures.

The class contains a single field message, which holds information about the error. This could be a simple string message or any object providing more detailed information about the exception.

Attributes:

  • message: An object that contains details about the exception. It can be a string with a descriptive error message or a more complex object providing additional information about the error condition.

Example:

try {
  // EventFlux operation that might throw an exception
} catch (e) {
  if (e is EventFluxException) {
    // Handle EventFlux-specific exceptions
    print('EventFlux exception occurred: ${e.message}');
  } else {
    // Handle other exceptions
  }
}

This class allows for more specific exception handling for EventFlux-related operations, making it easier to diagnose and respond to issues.

Implemented types

Constructors

EventFluxException({String? message, int? statusCode, String? reasonPhrase})

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
final
reasonPhrase String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited