Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 5737) sorted by relevance

12345678910>>...230

/external/openscreen/platform/base/
Derror.cc11 Error::Error() = default;
13 Error::Error(const Error& error) = default;
15 Error::Error(Error&& error) noexcept = default;
17 Error::Error(Code code) : code_(code) {} in Error() function in openscreen::Error
19 Error::Error(Code code, const std::string& message) in Error() function in openscreen::Error
22 Error::Error(Code code, std::string&& message) in Error() function in openscreen::Error
25 Error::~Error() = default;
27 Error& Error::operator=(const Error& other) = default;
29 Error& Error::operator=(Error&& other) = default;
31 bool Error::operator==(const Error& other) const { in operator ==()
[all …]
/external/doclava/src/com/google/doclava/
DErrors.java32 final Error error;
36 ErrorMessage(int r, Error e, SourcePositionInfo p, String m) { in ErrorMessage()
79 public Error error() { in error()
84 public static void error(Error error, MemberInfo mi, String text) { in error()
104 public static void error(Error error, SourcePositionInfo where, String text) { in error()
177 public static class Error { class in Errors
191 private final Error parent;
193 public Error(int code, int level) { in Error() method in Errors.Error
200 public Error(int code, Error parent) { in Error() method in Errors.Error
251 public static final List<Error> sErrors = new ArrayList<>();
[all …]
/external/rust/crates/serde/src/ser/
Dimpossible.rs60 pub struct Impossible<Ok, Error> {
63 error: PhantomData<Error>,
68 impl<Ok, Error> SerializeSeq for Impossible<Ok, Error>
70 Error: ser::Error,
73 type Error = Error; typedef
75 fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_element()
83 fn end(self) -> Result<Ok, Error> { in end() argument
88 impl<Ok, Error> SerializeTuple for Impossible<Ok, Error>
90 Error: ser::Error,
93 type Error = Error; typedef
[all …]
Dmod.rs120 pub use core::error::Error as StdError;
123 pub use std::error::Error as StdError;
126 pub use std_error::Error as StdError;
131 (Error: Sized $(+ $($supertrait:ident)::+)*) => {
142 pub trait Error: Sized $(+ $($supertrait)::+)* { trait
186 declare_error_trait!(Error: Sized + StdError);
189 declare_error_trait!(Error: Sized + Debug + Display);
249 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize()
345 type Error: Error; typedef
351 type SerializeSeq: SerializeSeq<Ok = Self::Ok, Error = Self::Error>;
[all …]
/external/rust/crates/rusqlite/src/
Derror.rs14 pub enum Error { enum
16 SqliteFailure(ffi::Error, Option<String>),
24 FromSqlConversionFailure(usize, Type, Box<dyn error::Error + Send + Sync + 'static>),
88 UserFunctionError(Box<dyn error::Error + Send + Sync + 'static>),
92 ToSqlConversionFailure(Box<dyn error::Error + Send + Sync + 'static>),
136 error: ffi::Error,
146 impl PartialEq for Error { implementation
147 fn eq(&self, other: &Error) -> bool { in eq()
149 (Error::SqliteFailure(e1, s1), Error::SqliteFailure(e2, s2)) => e1 == e2 && s1 == s2, in eq()
150 (Error::SqliteSingleThreadedMode, Error::SqliteSingleThreadedMode) => true, in eq()
[all …]
/external/rust/crates/thiserror/tests/
Dtest_display.rs2 use thiserror::Error;
10 #[derive(Error, Debug)] in test_braced()
12 struct Error { in test_braced() struct
17 assert("braced error: T", Error { msg }); in test_braced()
22 #[derive(Error, Debug)] in test_braced_unused()
24 struct Error { in test_braced_unused() struct
28 assert("braced error", Error { extra: 0 }); in test_braced_unused()
33 #[derive(Error, Debug)] in test_tuple()
35 struct Error(usize); in test_tuple() struct
37 assert("tuple error: 0", Error(0)); in test_tuple()
[all …]
/external/rust/crates/pkcs1/src/
Derror.rs9 pub type Result<T> = core::result::Result<T, Error>;
14 pub enum Error { enum
16 Asn1(der::Error),
28 Pkcs8(pkcs8::Error),
34 impl fmt::Display for Error { implementation
37 Error::Asn1(err) => write!(f, "PKCS#1 ASN.1 error: {}", err), in fmt()
38 Error::Crypto => f.write_str("PKCS#1 cryptographic error"), in fmt()
40 Error::Pkcs8(err) => write!(f, "{}", err), in fmt()
41 Error::Version => f.write_str("PKCS#1 version error"), in fmt()
46 impl From<der::Error> for Error { implementation
[all …]
/external/rust/crates/ciborium/src/
Dtag.rs3 use serde::{de, de::Error as _, forward_to_deserialize_any, ser, Deserialize, Serialize};
23 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() argument
33 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() argument
51 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() argument
54 _ => Err(de::Error::custom("required tag not found")), in deserialize()
61 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() argument
76 fn deserialize<D: de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { in deserialize() argument
80 _ => Err(de::Error::custom("required tag not found")), in deserialize()
87 fn serialize<S: ser::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { in serialize() argument
109 type Error = D::Error; typedef
[all …]
/external/rust/crates/pkcs8/src/
Derror.rs9 pub type Result<T> = core::result::Result<T, Error>;
14 pub enum Error { enum
16 Asn1(der::Error),
20 EncryptedPrivateKey(pkcs5::Error),
34 PublicKey(spki::Error),
37 impl fmt::Display for Error { implementation
40 Error::Asn1(err) => write!(f, "PKCS#8 ASN.1 error: {}", err), in fmt()
42 Error::EncryptedPrivateKey(err) => write!(f, "{}", err), in fmt()
43 Error::KeyMalformed => f.write_str("PKCS#8 cryptographic key data malformed"), in fmt()
44 Error::ParametersMalformed => f.write_str("PKCS#8 algorithm parameters malformed"), in fmt()
[all …]
/external/openthread/src/core/common/
Derror.hpp49 typedef otError Error; typedef
56 constexpr Error kErrorNone = OT_ERROR_NONE;
57 constexpr Error kErrorFailed = OT_ERROR_FAILED;
58 constexpr Error kErrorDrop = OT_ERROR_DROP;
59 constexpr Error kErrorNoBufs = OT_ERROR_NO_BUFS;
60 constexpr Error kErrorNoRoute = OT_ERROR_NO_ROUTE;
61 constexpr Error kErrorBusy = OT_ERROR_BUSY;
62 constexpr Error kErrorParse = OT_ERROR_PARSE;
63 constexpr Error kErrorInvalidArgs = OT_ERROR_INVALID_ARGS;
64 constexpr Error kErrorSecurity = OT_ERROR_SECURITY;
[all …]
/external/flatbuffers/rust/flexbuffers/src/builder/
Dser.rs43 fn finish_if_not_nested(&mut self) -> Result<(), Error> { in finish_if_not_nested() argument
67 fn end_vector(&mut self) -> Result<(), Error> { in end_vector() argument
72 fn end_map(&mut self) -> Result<(), Error> { in end_map() argument
81 pub enum Error { enum
87 impl std::fmt::Display for Error { implementation
88 fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { in fmt() argument
92 impl std::error::Error for Error {} implementation
93 impl ser::Error for Error { implementation
103 type Error = Error; typedef
104 fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> in serialize_element()
[all …]
/external/rust/crates/sec1/src/
Derror.rs9 pub type Result<T> = core::result::Result<T, Error>;
14 pub enum Error { enum
18 Asn1(der::Error),
30 Pkcs8(pkcs8::Error),
40 impl fmt::Display for Error { implementation
44 Error::Asn1(err) => write!(f, "SEC1 ASN.1 error: {}", err), in fmt()
45 Error::Crypto => f.write_str("SEC1 cryptographic error"), in fmt()
47 Error::Pkcs8(err) => write!(f, "{}", err), in fmt()
48 Error::PointEncoding => f.write_str("elliptic curve point encoding error"), in fmt()
49 Error::Version => f.write_str("SEC1 version error"), in fmt()
[all …]
/external/rust/crates/tinytemplate/src/
Derror.rs4 use serde_json::Error as SerdeJsonError;
6 use std::error::Error as StdError;
11 pub enum Error { enum
29 err: fmt::Error,
33 err: Box<Error>,
39 err: Box<Error>,
47 impl From<SerdeJsonError> for Error { implementation
48 fn from(err: SerdeJsonError) -> Error { in from() argument
49 Error::SerdeError { err } in from()
52 impl From<fmt::Error> for Error { implementation
[all …]
/external/rust/crates/serde/src/de/
Dmod.rs131 pub use std::error::Error as StdError;
134 pub use std_error::Error as StdError;
139 (Error: Sized $(+ $($supertrait:ident)::+)*) => {
160 pub trait Error: Sized $(+ $($supertrait)::+)* { trait
209 Error::custom(format_args!("invalid type: {}, expected {}", unexp, exp))
227 Error::custom(format_args!("invalid value: {}, expected {}", unexp, exp))
241 Error::custom(format_args!("invalid length {}, expected {}", len, exp))
249 Error::custom(format_args!(
254 Error::custom(format_args!(
267 Error::custom(format_args!(
[all …]
/external/openscreen/cast/sender/channel/
Dcast_auth_util.cc44 Error ParseAuthMessage(const CastMessage& challenge_reply, in ParseAuthMessage()
48 return Error(Error::Code::kCastV2WrongPayloadType, in ParseAuthMessage()
52 return Error(Error::Code::kCastV2NoPayload, PARSE_ERROR_PREFIX in ParseAuthMessage()
56 return Error(Error::Code::kCastV2PayloadParsingFailed, PARSE_ERROR_PREFIX in ParseAuthMessage()
64 return Error(Error::Code::kCastV2MessageError, ss.str()); in ParseAuthMessage()
67 return Error(Error::Code::kCastV2NoResponse, in ParseAuthMessage()
70 return Error::None(); in ParseAuthMessage()
114 Error MapToOpenscreenError(Error verify_error, bool crl_required) { in MapToOpenscreenError()
116 case Error::Code::kErrCertsMissing: in MapToOpenscreenError()
117 return Error(Error::Code::kCastV2PeerCertEmpty, in MapToOpenscreenError()
[all …]
/external/drm_hwcomposer/hwc2_device/
DHwcDisplay.cpp148 HWC2::Error HwcDisplay::Init() { in Init()
170 return HWC2::Error::BadDisplay; in Init()
177 return HWC2::Error::BadDisplay; in Init()
183 return HWC2::Error::None; in Init()
186 HWC2::Error HwcDisplay::ChosePreferredConfig() { in ChosePreferredConfig()
187 HWC2::Error err{}; in ChosePreferredConfig()
193 if (!IsInHeadlessMode() && err != HWC2::Error::None) { in ChosePreferredConfig()
194 return HWC2::Error::BadDisplay; in ChosePreferredConfig()
200 HWC2::Error HwcDisplay::AcceptDisplayChanges() { in AcceptDisplayChanges()
203 return HWC2::Error::None; in AcceptDisplayChanges()
[all …]
/external/oj-libjdwp/make/data/jdwp/
Djdwp.spec41 (Error VM_DEAD)
68 (Error VM_DEAD)
90 (Error VM_DEAD)
109 (Error VM_DEAD)
124 (Error VM_DEAD)
172 (Error VM_DEAD)
190 (Error VM_DEAD)
233 (Error VM_DEAD)
266 (Error VM_DEAD)
284 (Error VM_DEAD)
[all …]
/external/crosvm/cros_async/src/
Dio_ext.rs15 use thiserror::Error as ThisError;
20 pub enum Error { enum
23 EventAsync(base::Error),
26 Poll(crate::sys::unix::poll_source::Error),
29 Uring(crate::sys::unix::uring_executor::Error),
35 pub enum Error { enum
37 EventAsync(base::Error),
39 HandleExecutor(crate::sys::windows::handle_executor::Error),
41 HandleSource(crate::sys::windows::handle_source::Error),
43 OverlappedSource(crate::sys::windows::overlapped_source::Error),
[all …]
/external/rust/crates/getrandom/src/
Derror.rs25 pub struct Error(NonZeroU32); struct
27 const fn internal_error(n: u16) -> Error { in internal_error() argument
29 let code = Error::INTERNAL_START + (n as u32); in internal_error()
30 Error(unsafe { NonZeroU32::new_unchecked(code) }) in internal_error()
33 impl Error { impl
35 pub const UNSUPPORTED: Error = internal_error(0);
37 pub const ERRNO_NOT_POSITIVE: Error = internal_error(1);
39 pub const IOS_SEC_RANDOM: Error = internal_error(3);
41 pub const WINDOWS_RTL_GEN_RANDOM: Error = internal_error(4);
43 pub const FAILED_RDRAND: Error = internal_error(5);
[all …]
/external/rust/crates/ciborium/src/ser/
Dmod.rs7 pub use error::Error;
33 W::Error: core::fmt::Debug,
36 type Error = Error<W::Error>; typedef
47 fn serialize_bool(self, v: bool) -> Result<(), Self::Error> { in serialize_bool() argument
55 fn serialize_i8(self, v: i8) -> Result<(), Self::Error> { in serialize_i8() argument
60 fn serialize_i16(self, v: i16) -> Result<(), Self::Error> { in serialize_i16() argument
65 fn serialize_i32(self, v: i32) -> Result<(), Self::Error> { in serialize_i32() argument
70 fn serialize_i64(self, v: i64) -> Result<(), Self::Error> { in serialize_i64() argument
78 fn serialize_i128(self, v: i128) -> Result<(), Self::Error> { in serialize_i128() argument
104 fn serialize_u8(self, v: u8) -> Result<(), Self::Error> { in serialize_u8() argument
[all …]
/external/rust/cxx/syntax/
Derror.rs4 pub struct Error { struct
10 impl Display for Error { argument
16 pub static ERRORS: &[Error] = &[
30 pub static BOX_CXX_TYPE: Error = Error {
36 pub static CXXBRIDGE_RESERVED: Error = Error {
42 pub static CXX_STRING_BY_VALUE: Error = Error {
48 pub static CXX_TYPE_BY_VALUE: Error = Error {
54 pub static DISCRIMINANT_OVERFLOW: Error = Error {
60 pub static DOT_INCLUDE: Error = Error {
66 pub static DOUBLE_UNDERSCORE: Error = Error {
[all …]
/external/crosvm/base/src/
Derrno.rs14 use thiserror::Error;
21 #[derive(Error, Serialize, Deserialize, Clone, Copy, Debug, PartialEq, Eq)]
23 pub struct Error(i32); struct
24 pub type Result<T> = result::Result<T, Error>;
26 impl Error { implementation
28 pub fn new<T: TryInto<i32>>(e: T) -> Error { in new() argument
31 Error(e.try_into().unwrap_or_default()) in new()
38 pub fn last() -> Error { in last()
39 Error(io::Error::last_os_error().raw_os_error().unwrap()) in last()
48 impl From<io::Error> for Error { implementation
[all …]
/external/rust/crates/psci/src/
Derror.rs22 pub enum Error { enum
45 impl From<Error> for i32 {
46 fn from(error: Error) -> i32 { in from()
48 Error::NotSupported => NOT_SUPPORTED, in from()
49 Error::InvalidParameters => INVALID_PARAMETERS, in from()
50 Error::Denied => DENIED, in from()
51 Error::AlreadyOn => ALREADY_ON, in from()
52 Error::OnPending => ON_PENDING, in from()
53 Error::InternalFailure => INTERNAL_FAILURE, in from()
54 Error::NotPresent => NOT_PRESENT, in from()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DRecordName.cpp37 Error visitTypeBegin(CVType &Record) override;
38 Error visitTypeBegin(CVType &Record, TypeIndex Index) override;
39 Error visitTypeEnd(CVType &Record) override;
42 Error visitKnownRecord(CVType &CVR, Name##Record &Record) override;
49 Error TypeNameComputer::visitTypeBegin(CVType &Record) { in visitTypeBegin()
51 return Error::success(); in visitTypeBegin()
54 Error TypeNameComputer::visitTypeBegin(CVType &Record, TypeIndex Index) { in visitTypeBegin()
58 return Error::success(); in visitTypeBegin()
61 Error TypeNameComputer::visitTypeEnd(CVType &CVR) { return Error::success(); } in visitTypeEnd()
63 Error TypeNameComputer::visitKnownRecord(CVType &CVR, in visitKnownRecord()
[all …]
/external/rust/crates/combine/src/stream/
Dread.rs12 pub enum Error { enum
15 Io(io::Error),
18 impl fmt::Display for Error { implementation
21 Error::Unexpected => write!(f, "unexpected parse"), in fmt()
22 Error::EndOfInput => write!(f, "unexpected end of input"), in fmt()
23 Error::Io(err) => write!(f, "{}", err), in fmt()
28 impl PartialEq for Error { implementation
31 (Error::Unexpected, Error::Unexpected) => true, in eq()
32 (Error::EndOfInput, Error::EndOfInput) => true, in eq()
38 impl<Item, Range> StreamError<Item, Range> for Error { implementation
[all …]

12345678910>>...230