OsmosErrorCodes enum
Enum for Flutter plugin error codes and messages. Centralizes all error definitions to match native implementations.
Values
- parameterError → const OsmosErrorCodes
-
const OsmosErrorCodes('PARAMETER_ERROR', 'Invalid parameters provided') - missingParameter → const OsmosErrorCodes
-
const OsmosErrorCodes('MISSING_PARAMETER', 'Required parameter is missing') - invalidParameterType → const OsmosErrorCodes
-
const OsmosErrorCodes('INVALID_PARAMETER_TYPE', 'Parameter has invalid type') - fetchAdsError → const OsmosErrorCodes
-
const OsmosErrorCodes('FETCH_ADS_ERROR', 'Failed to fetch ads') - fetchDisplayAdsError → const OsmosErrorCodes
-
const OsmosErrorCodes('FETCH_DISPLAY_ADS_ERROR', 'Failed to fetch display ads') - fetchPlaAdsError → const OsmosErrorCodes
-
const OsmosErrorCodes('FETCH_PLA_ADS_ERROR', 'Failed to fetch PLA ads') - renderAdsError → const OsmosErrorCodes
-
const OsmosErrorCodes('RENDER_ADS_ERROR', 'Failed to render ads') -
const OsmosErrorCodes('BANNER_AD_ERROR', 'Banner ad error') - interstitialAdError → const OsmosErrorCodes
-
const OsmosErrorCodes('INTERSTITIAL_AD_ERROR', 'Interstitial ad error') - pipAdError → const OsmosErrorCodes
-
const OsmosErrorCodes('PIP_AD_ERROR', 'PIP ad error') - viewError → const OsmosErrorCodes
-
const OsmosErrorCodes('VIEW_ERROR', 'View loading or display error') - platformViewError → const OsmosErrorCodes
-
const OsmosErrorCodes('PLATFORM_VIEW_ERROR', 'Platform view error') - layoutError → const OsmosErrorCodes
-
const OsmosErrorCodes('LAYOUT_ERROR', 'Layout or sizing error') - trackingError → const OsmosErrorCodes
-
const OsmosErrorCodes('TRACKING_ERROR', 'Event tracking error') - adClickError → const OsmosErrorCodes
-
const OsmosErrorCodes('AD_CLICK_ERROR', 'Ad click event error') - adImpressionError → const OsmosErrorCodes
-
const OsmosErrorCodes('AD_IMPRESSION_ERROR', 'Ad impression event error') - registrationError → const OsmosErrorCodes
-
const OsmosErrorCodes('REGISTRATION_ERROR', 'Event registration error') - initializationError → const OsmosErrorCodes
-
const OsmosErrorCodes('INITIALIZATION_ERROR', 'SDK initialization error') - sdkError → const OsmosErrorCodes
-
const OsmosErrorCodes('SDK_ERROR', 'SDK operation error') - sdkNotInitialized → const OsmosErrorCodes
-
const OsmosErrorCodes('SDK_NOT_INITIALIZED', 'SDK is not initialized') - configurationError → const OsmosErrorCodes
-
const OsmosErrorCodes('CONFIGURATION_ERROR', 'SDK configuration error') - dataConversionError → const OsmosErrorCodes
-
const OsmosErrorCodes('DATA_CONVERSION_ERROR', 'Data conversion error') - dataParsingError → const OsmosErrorCodes
-
const OsmosErrorCodes('DATA_PARSING_ERROR', 'Data parsing error') - invalidAdData → const OsmosErrorCodes
-
const OsmosErrorCodes('INVALID_AD_DATA', 'Invalid ad data provided') - missingAdData → const OsmosErrorCodes
-
const OsmosErrorCodes('MISSING_AD_DATA', 'Required ad data is missing') - dataParsingFailed → const OsmosErrorCodes
-
const OsmosErrorCodes('DATA_PARSING_FAILED', 'Failed to parse data') - networkError → const OsmosErrorCodes
-
const OsmosErrorCodes('NETWORK_ERROR', 'Network operation error') - timeoutError → const OsmosErrorCodes
-
const OsmosErrorCodes('TIMEOUT_ERROR', 'Operation timeout') - connectionError → const OsmosErrorCodes
-
const OsmosErrorCodes('CONNECTION_ERROR', 'Connection error') - resourceError → const OsmosErrorCodes
-
const OsmosErrorCodes('RESOURCE_ERROR', 'Resource loading error') - memoryError → const OsmosErrorCodes
-
const OsmosErrorCodes('MEMORY_ERROR', 'Memory allocation error') - cleanupError → const OsmosErrorCodes
-
const OsmosErrorCodes('CLEANUP_ERROR', 'Resource cleanup error') - methodChannelError → const OsmosErrorCodes
-
const OsmosErrorCodes('METHOD_CHANNEL_ERROR', 'Method channel communication error') - flutterBridgeError → const OsmosErrorCodes
-
const OsmosErrorCodes('FLUTTER_BRIDGE_ERROR', 'Flutter bridge error') - unknownError → const OsmosErrorCodes
-
const OsmosErrorCodes('UNKNOWN_ERROR', 'Unknown error occurred') - operationFailed → const OsmosErrorCodes
-
const OsmosErrorCodes('OPERATION_FAILED', 'Operation failed') - unsupportedOperation → const OsmosErrorCodes
-
const OsmosErrorCodes('UNSUPPORTED_OPERATION', 'Unsupported operation')
Properties
- code → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- message → String
-
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
fromCode(
String? code) → OsmosErrorCodes? - Find Error by error code string
-
getAllCodes(
) → List< String> - Get all error codes as a list
-
isValidCode(
String code) → bool - Check if error code exists
Constants
-
values
→ const List<
OsmosErrorCodes> - A constant List of the values in this enum, in order of their declaration.