Home
last modified time | relevance | path

Searched refs:CustomError (Results 1 – 12 of 12) sorted by relevance

/external/llvm/unittests/Support/
DErrorTest.cpp23 class CustomError : public ErrorInfo<CustomError> { class
26 CustomError(int Info) : Info(Info) {} in CustomError() function in __anonc55b4acb0111::CustomError
48 CustomError() : Info(0) {} in CustomError() function in __anonc55b4acb0111::CustomError
53 char CustomError::ID = 0;
57 class CustomSubError : public ErrorInfo<CustomSubError, CustomError> {
85 static Error handleCustomError(const CustomError &CE) { return Error(); } in handleCustomError()
87 static void handleCustomErrorVoid(const CustomError &CE) {} in handleCustomErrorVoid()
89 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) { in handleCustomErrorUP()
93 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {} in handleCustomErrorUPVoid()
142 Error E = make_error<CustomError>(42); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DErrorTest.cpp26 class CustomError : public ErrorInfo<CustomError> { class
29 CustomError(int Info) : Info(Info) {} in CustomError() function in __anon36e9a6790111::CustomError
51 CustomError() : Info(0) {} in CustomError() function in __anon36e9a6790111::CustomError
56 char CustomError::ID = 0;
60 class CustomSubError : public ErrorInfo<CustomSubError, CustomError> {
88 static Error handleCustomError(const CustomError &CE) { in handleCustomError()
92 static void handleCustomErrorVoid(const CustomError &CE) {} in handleCustomErrorVoid()
94 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) { in handleCustomErrorUP()
98 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {} in handleCustomErrorUPVoid()
148 Error E = make_error<CustomError>(42); in TEST()
[all …]
/external/rust/crates/nom/tests/
Dcustom_errors.rs14 pub struct CustomError(String); struct
16 impl<'a> From<(&'a str, ErrorKind)> for CustomError { implementation
18 CustomError(format!("error code was: {:?}", error)) in from()
22 impl<'a> ParseError<&'a str> for CustomError { implementation
24 CustomError(format!("error code was: {:?}", kind)) in from_error_kind()
27 fn append(_: &'a str, kind: ErrorKind, other: CustomError) -> Self { in append()
28 CustomError(format!("{:?}\nerror code was: {:?}", other, kind)) in append()
34 fn test1(input: &str) -> IResult<&str, &str, CustomError> { in test1() argument
39 fn test2(input: &str) -> IResult<&str, &str, CustomError> { in test2() argument
44 fn test3(input: &str) -> IResult<&str, &str, CustomError> { in test3() argument
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Derror_utils_test.py32 class CustomError(Exception): class
41 exc = em.create_exception(CustomError())
42 self.assertIsInstance(exc, CustomError)
47 class CustomError(Exception): class
50 super(CustomError, self).__init__('test_message')
58 exc = em.create_exception(CustomError())
/external/rust/crates/rusqlite/src/
Dlib.rs1544 enum CustomError { enum
1549 impl fmt::Display for CustomError { implementation
1552 CustomError::SomeError => write!(f, "my custom error"), in fmt()
1553 CustomError::Sqlite(ref se) => write!(f, "my custom error: {}", se), in fmt()
1558 impl StdError for CustomError { implementation
1565 CustomError::SomeError => None, in cause()
1566 CustomError::Sqlite(ref se) => Some(se), in cause()
1571 impl From<Error> for CustomError { implementation
1572 fn from(se: Error) -> CustomError { in from() argument
1573 CustomError::Sqlite(se) in from()
[all …]
/external/rust/crates/nom/src/combinator/
Dmacros.rs1086 pub struct CustomError(&'static str); struct
1087 impl<I> From<(I, ErrorKind)> for CustomError { implementation
1089 CustomError("test") in from()
1093 impl<I> ParseError<I> for CustomError { implementation
1095 CustomError("from_error_kind") in from_error_kind()
1098 fn append(_: I, _: ErrorKind, _: CustomError) -> Self { in append()
1099 CustomError("append") in append()
1107 fn f_true(i: &[u8]) -> IResult<&[u8], Option<&[u8]>, CustomError> { in cond() argument
1108 fix_error!(i, CustomError, cond!(true, tag!("abcd"))) in cond()
1111 fn f_false(i: &[u8]) -> IResult<&[u8], Option<&[u8]>, CustomError> { in cond() argument
[all …]
Dmod.rs786 impl From<u32> for CustomError { implementation
788 CustomError in from()
792 impl<I> ParseError<I> for CustomError { implementation
794 CustomError in from_error_kind()
797 fn append(_: I, _: ErrorKind, _: CustomError) -> Self { in append()
798 CustomError in append()
802 struct CustomError; struct
804 fn custom_error(input: &[u8]) -> IResult<&[u8], &[u8], CustomError> { in custom_error() argument
/external/parameter-framework/upstream/tools/coverage/
Dcoverage.py52 class CustomError(Exception): class
55 class ChildError(CustomError):
488 class IneligibleConfigurationAppliedError(CustomError):
608 class ChangeRequestToNonAccessibleState(CustomError):
710 class ConfigAppliedWithoutCriteriaError(CustomError):
722 class ChangeRequestOnUnknownCriterion(CustomError):
860 except CustomError as ex:
1061 except CustomError as ex:
/external/python/cpython3/Lib/test/
Dtest_dataclasses.py21 class CustomError(Exception): pass class
886 raise CustomError()
887 with self.assertRaises(CustomError):
895 raise CustomError()
896 with self.assertRaises(CustomError):
906 raise CustomError()
932 raise CustomError()
947 with self.assertRaises(CustomError):
956 with self.assertRaises(CustomError):
/external/python/apitools/samples/servicemanagement_sample/servicemanagement_v1/
Dservicemanagement_v1_messages.py543 class CustomError(_messages.Message): class
/external/python/cpython2/Doc/library/
Ddoctest.rst591 >>> raise CustomError('message')
593 CustomError: message
595 >>> raise CustomError('message')
597 my_module.CustomError: message
/external/python/cpython3/Doc/library/
Ddoctest.rst581 >>> raise CustomError('message')
583 CustomError: message
585 >>> raise CustomError('message')
587 my_module.CustomError: message