| 110 | #[derive(Error, Debug)] |
| 111 | #[cfg_attr(feature = "rune-scripting", derive(rune::Any))] |
| 112 | pub enum ScriptError { |
| 113 | /// Buf is too short |
| 114 | #[error(transparent)] |
| 115 | ShortBuf(#[from] domain::base::ShortBuf), |
| 116 | |
| 117 | /// Error forwarded from `Utils` |
| 118 | #[error(transparent)] |
| 119 | UtilsError(#[from] utils::UtilsError), |
| 120 | |
| 121 | /// Error forwarded from `Messages` |
| 122 | #[error(transparent)] |
| 123 | MessageError(#[from] MessageError), |
| 124 | |
| 125 | /// Error forwarded from `Upstreams` |
| 126 | #[error(transparent)] |
| 127 | UpstreamError(#[from] crate::errors::UpstreamError), |
| 128 | |
| 129 | /// Rune Emit Error |
| 130 | #[cfg(feature = "rune-scripting")] |
| 131 | #[error(transparent)] |
| 132 | RuneEmitError(#[from] rune::diagnostics::EmitError), |
| 133 | |
| 134 | /// Rune Build Error |
| 135 | #[cfg(feature = "rune-scripting")] |
| 136 | #[error(transparent)] |
| 137 | RuneBuildError(#[from] rune::BuildError), |
| 138 | |
| 139 | /// Rune Context Error |
| 140 | #[cfg(feature = "rune-scripting")] |
| 141 | #[error(transparent)] |
| 142 | RuneContextError(#[from] rune::ContextError), |
| 143 | |
| 144 | /// Rune Vm Error |
| 145 | #[cfg(feature = "rune-scripting")] |
| 146 | #[error(transparent)] |
| 147 | RuneVmError(#[from] rune::runtime::VmError), |
| 148 | } |
| 149 | |
| 150 | /// Query Context |
| 151 | #[derive(Clone)] |
nothing calls this directly
no outgoing calls
no test coverage detected