-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
349 additions
and
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// Copyright (C) 2022 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
export 'module_not_built_exception.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,21 @@ | ||
/// Copyright (C) 2022 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
/// | ||
/// module_not_build_exception.dart | ||
/// Definition for exception when module is not built | ||
/// | ||
/// 2022 December 30 | ||
/// Author: Max Korbel <max.korbel@intel.com> | ||
/// | ||
import 'package:rohd/rohd.dart'; | ||
import 'package:rohd/src/exceptions/rohd_exception.dart'; | ||
|
||
/// An [Exception] thrown when a [Module] was used in a way that required it | ||
/// to be built first, but it was not yet built. | ||
class ModuleNotBuiltException extends RohdException { | ||
/// Constructs a new [Exception] for when a [Module] should have been built | ||
/// before some action was taken. | ||
ModuleNotBuiltException( | ||
[super.message = 'Module has not yet built! Must call build() first.']); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/// Copyright (C) 2022 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
/// | ||
/// rohd_exception.dart | ||
/// Base class for all ROHD exceptions | ||
/// | ||
/// 2022 December 30 | ||
/// Author: Max Korbel <max.korbel@intel.com> | ||
/// | ||
/// A base type of exception that ROHD-specific exceptions inherit from. | ||
abstract class RohdException implements Exception { | ||
/// A description of what this exception means. | ||
final String message; | ||
|
||
/// Creates a new exception with description [message]. | ||
RohdException(this.message); | ||
|
||
@override | ||
String toString() => 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
Oops, something went wrong.