Crate wp_error

Crate wp_error 

Source

Re-exports§

pub use codes::SysErrorCode;
pub use http_map::http_status_for_reason;
pub use http_map::http_status_for_sys;
pub use http_respond::ErrorResponse;
pub use http_respond::build_error_response;
pub use http_respond::error_response_json;
pub use http_respond::error_response_text;
pub use config_error::*;
pub use parse_error::*;
pub use run_error::*;

Modules§

codes
System-wide error code contract for wp-error. Provide a single place to convert domain reasons into stable numeric codes.
config_error
error_handling
http_map
Lightweight mapping from system error code (SysErrorCode) to HTTP status. This module is framework-agnostic and does not depend on any HTTP stack.
http_respond
Helpers to build consistent error responses (JSON/text) without coupling to any specific web framework.
parse_error
run_error
util

Enums§

KnowledgeReason

Type Aliases§

KnowledgeError
KnowledgeResult