MCPcopy Create free account
hub / github.com/cowprotocol/services / error

Function error

crates/orderbook/src/api.rs:414–420  ·  view source on GitHub ↗
(error_type: &'static str, description: impl AsRef<str>)

Source from the content-addressed store, hash-verified

412}
413
414pub fn error(error_type: &'static str, description: impl AsRef<str>) -> Json<Error> {
415 Json(Error {
416 error_type: error_type.into(),
417 description: Cow::Owned(description.as_ref().to_owned()),
418 data: None,
419 })
420}
421
422pub fn rich_error(
423 error_type: &'static str,

Callers 15

internal_error_replyFunction · 0.70
into_responseMethod · 0.70
get_user_orders_handlerFunction · 0.50
into_responseMethod · 0.50
into_responseMethod · 0.50
get_auction_handlerFunction · 0.50
get_trades_handlerFunction · 0.50
debug_simulation_handlerFunction · 0.50
into_responseMethod · 0.50
get_trades_handlerFunction · 0.50
into_responseMethod · 0.50
debug_order_handlerFunction · 0.50

Calls 1

intoMethod · 0.45

Tested by

no test coverage detected