cat-dev 0.0.13

A library for interacting with the CAT-DEV hardware units distributed by Nintendo (i.e. a type of Wii-U DevKits).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types specifically for clients in CAT-DEV.

use miette::{Diagnostic, Report};
use thiserror::Error;

#[derive(Diagnostic, Error, Debug)]
pub enum CommonNetClientNetworkError {
	#[error("This client tried to send/receive packets but was not connected to a server.")]
	#[diagnostic(code(cat_dev::net::client::not_connected_to_server))]
	NotConnectedToServer,
	#[error("This client tried to serialize a packet but failed: {0:?}")]
	#[diagnostic(code(cat_dev::net::client::serialization_error))]
	SerializationError(Report),
	#[error("The client tried to queue up a packet to send but failed: {0:?}")]
	#[diagnostic(code(cat_dev::net::client::cannot_queue_send))]
	CannotQueueSend(String),
}