-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae7fa21
commit 30ace4f
Showing
6 changed files
with
87 additions
and
35 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
17 changes: 17 additions & 0 deletions
17
lib/src/exception/RequiredInitialValueMustBeProvidedException.dart
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,17 @@ | ||
class RequiredInitialValueMustBeProvidedException extends Exception { | ||
factory RequiredInitialValueMustBeProvidedException({String message, String name}) => | ||
_RequiredInitialValueMustBeProvidedException(message: message, name: name); | ||
} | ||
|
||
class _RequiredInitialValueMustBeProvidedException implements RequiredInitialValueMustBeProvidedException { | ||
final message; | ||
|
||
final String name; | ||
|
||
_RequiredInitialValueMustBeProvidedException({this.message, this.name}); | ||
|
||
String toString() { | ||
if (message == null) return "Exception: required initial value must be provided: '${this.name}'"; | ||
return "Exception: $message"; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
lib/src/exception/SideEffectModelReflectFunctionParameterNotMatchClassFieldException.dart
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,18 @@ | ||
class SideEffectModelReflectFunctionParameterNotMatchClassFieldException extends Exception { | ||
factory SideEffectModelReflectFunctionParameterNotMatchClassFieldException({String message, String name}) => | ||
_SideEffectModelReflectFunctionParameterNotMatchClassFieldException(message: message, name: name); | ||
} | ||
|
||
class _SideEffectModelReflectFunctionParameterNotMatchClassFieldException | ||
implements SideEffectModelReflectFunctionParameterNotMatchClassFieldException { | ||
final message; | ||
|
||
final String name; | ||
|
||
_SideEffectModelReflectFunctionParameterNotMatchClassFieldException({this.message, this.name}); | ||
|
||
String toString() { | ||
if (message == null) return "Exception: The field named: '${this.name}' not found."; | ||
return "Exception: $message"; | ||
} | ||
} |
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
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
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