Enum perseus::errors::ServerError
source · pub enum ServerError {
Show 18 variants
RenderFnFailed {
fn_name: String,
template_name: String,
blame: ErrorBlame,
source: Box<dyn Error + Send + Sync>,
},
MinifyError {
source: Error,
},
UrlDecodeFailed {
source: FromUtf8Error,
},
MissingBuildExtra {
template_name: String,
},
InvalidBuildExtra {
template_name: String,
source: Error,
},
InvalidPageState {
source: Error,
},
ResolveDepLocaleRedirection {
widget: String,
locale: String,
},
ResolveDepNotFound {
widget: String,
locale: String,
},
TemplateCannotBeRescheduled {
template_name: String,
},
DepTreeNotResolved,
TemplateNameNotInPath,
StoreError(StoreError),
TranslationsManagerError(TranslationsManagerError),
BuildError(BuildError),
ExportError(ExportError),
ServeError(ServeError),
PluginError(PluginError),
ClientError(ClientError),
}
Expand description
Errors that can occur in the build process or while the server is running.
Variants§
RenderFnFailed
MinifyError
UrlDecodeFailed
Fields
§
source: FromUtf8Error
MissingBuildExtra
InvalidBuildExtra
InvalidPageState
ResolveDepLocaleRedirection
ResolveDepNotFound
TemplateCannotBeRescheduled
DepTreeNotResolved
TemplateNameNotInPath
StoreError(StoreError)
TranslationsManagerError(TranslationsManagerError)
BuildError(BuildError)
ExportError(ExportError)
ServeError(ServeError)
PluginError(PluginError)
ClientError(ClientError)
Trait Implementations§
source§impl Debug for ServerError
impl Debug for ServerError
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BuildError> for ServerError
impl From<BuildError> for ServerError
source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
source§impl From<ClientError> for ServerError
impl From<ClientError> for ServerError
source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
source§impl From<ExportError> for ServerError
impl From<ExportError> for ServerError
source§fn from(source: ExportError) -> Self
fn from(source: ExportError) -> Self
Converts to this type from the input type.
source§impl From<PluginError> for ServerError
impl From<PluginError> for ServerError
source§fn from(source: PluginError) -> Self
fn from(source: PluginError) -> Self
Converts to this type from the input type.
source§impl From<ServeError> for ServerError
impl From<ServeError> for ServerError
source§fn from(source: ServeError) -> Self
fn from(source: ServeError) -> Self
Converts to this type from the input type.
source§impl From<ServerError> for EngineError
impl From<ServerError> for EngineError
source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
source§impl From<ServerError> for Error
impl From<ServerError> for Error
source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
source§impl From<StoreError> for ServerError
impl From<StoreError> for ServerError
source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
source§impl From<TranslationsManagerError> for ServerError
impl From<TranslationsManagerError> for ServerError
source§fn from(source: TranslationsManagerError) -> Self
fn from(source: TranslationsManagerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more