Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions crates/nvisy-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ impl Error {
self
}

/// Shorthand for a validation error with a source component.
pub fn validation(message: impl Into<String>, source: impl Into<String>) -> Self {
Self::new(ErrorKind::Validation, message).with_component(source)
/// Shorthand for a validation error with a component name.
pub fn validation(message: impl Into<String>, component: impl Into<String>) -> Self {
Self::new(ErrorKind::Validation, message).with_component(component)
}

/// Shorthand for a connection error with a source component and retryable flag.
/// Shorthand for a connection error with a component name and retryable flag.
pub fn connection(
message: impl Into<String>,
source: impl Into<String>,
component: impl Into<String>,
retryable: bool,
) -> Self {
Self::new(ErrorKind::Connection, message)
.with_component(source)
.with_component(component)
.with_retryable(retryable)
}

Expand All @@ -113,10 +113,14 @@ impl Error {
Self::new(ErrorKind::Policy, message)
}

/// Shorthand for a runtime error with a source component and retryable flag.
pub fn runtime(message: impl Into<String>, source: impl Into<String>, retryable: bool) -> Self {
/// Shorthand for a runtime error with a component name and retryable flag.
pub fn runtime(
message: impl Into<String>,
component: impl Into<String>,
retryable: bool,
) -> Self {
Self::new(ErrorKind::Runtime, message)
.with_component(source)
.with_component(component)
.with_retryable(retryable)
}

Expand Down
37 changes: 0 additions & 37 deletions crates/nvisy-engine/src/compiler/graph/action.rs

This file was deleted.

147 changes: 0 additions & 147 deletions crates/nvisy-engine/src/compiler/graph/mod.rs

This file was deleted.

13 changes: 0 additions & 13 deletions crates/nvisy-engine/src/compiler/graph/source.rs

This file was deleted.

13 changes: 0 additions & 13 deletions crates/nvisy-engine/src/compiler/graph/target.rs

This file was deleted.

121 changes: 0 additions & 121 deletions crates/nvisy-engine/src/compiler/mod.rs

This file was deleted.

Loading
Loading