-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve exceptions for Logic.put (#243)
- Loading branch information
Showing
6 changed files
with
61 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/// Copyright (C) 2022 Intel Corporation | ||
/// Copyright (C) 2022-2023 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
export './conditionals/conditional_exceptions.dart'; | ||
export './logic/logic_exceptions.dart'; | ||
export './module/module_exceptions.dart'; | ||
export './name/name_exceptions.dart'; | ||
export './sim_compare/sim_compare_exceptions.dart'; | ||
export 'rohd_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,4 @@ | ||
/// Copyright (C) 2023 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
export 'put_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,20 @@ | ||
/// Copyright (C) 2023 Intel Corporation | ||
/// SPDX-License-Identifier: BSD-3-Clause | ||
/// | ||
/// put_exception.dart | ||
/// An exception that thrown when a signal failes to `put`. | ||
/// | ||
/// 2023 January 5 | ||
/// Author: Max Korbel <max.korbel@intel.com> | ||
/// | ||
import 'package:rohd/rohd.dart'; | ||
import 'package:rohd/src/exceptions/rohd_exception.dart'; | ||
|
||
/// An exception that thrown when a [Logic] signal fails to `put`. | ||
class PutException extends RohdException { | ||
/// Creates an exception for when a `put` fails on a `Logic` with [context] as | ||
/// to where the | ||
PutException(String context, String message) | ||
: super('Failed to put value on signal ($context): $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