/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::{error, fmt, result, str::Utf8Error};
use nserror::{nsresult, NS_ERROR_INVALID_ARG, NS_ERROR_UNEXPECTED}; use serde_json::Error as JsonError;
/// A specialized `Result` type for Golden Gate. pubtype Result<T> = result::Result<T, Error>;
/// The error type for Golden Gate errors. #[derive(Debug)] pubenum Error { /// A wrapped XPCOM error.
Nsresult(nsresult),
/// A ferry didn't run on the background task queue.
DidNotRun(&'static str),
/// A string contains invalid UTF-8 or JSON.
MalformedString(Box<dyn error::Error + Send + Sync + 'static>),
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.