-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐️ Impl: Add
RNIGenericErrorDefaultable+Default
- Loading branch information
1 parent
f10dd71
commit a6b905e
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
ios/src_library/React Native/RNIError/RNIGenericErrorDefaultable+Default.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// RNIGenericErrorDefaultable+Default.swift | ||
// react-native-ios-modal | ||
// | ||
// Created by Dominic Go on 5/10/23. | ||
// | ||
|
||
import Foundation | ||
|
||
public extension RNIGenericErrorDefaultable { | ||
static var runtimeError: Self { | ||
Self.runtimeError | ||
}; | ||
|
||
static var libraryError: Self { | ||
Self.libraryError | ||
}; | ||
|
||
static var reactError: Self { | ||
Self.reactError | ||
}; | ||
|
||
static var unknownError: Self { | ||
Self.unknownError | ||
}; | ||
|
||
static var invalidArgument: Self { | ||
Self.invalidArgument | ||
}; | ||
|
||
static var outOfBounds: Self { | ||
Self.outOfBounds | ||
}; | ||
|
||
static var invalidReactTag: Self { | ||
Self.invalidReactTag | ||
}; | ||
|
||
static var nilValue: Self { | ||
Self.nilValue | ||
}; | ||
}; |