Home
last modified time | relevance | path

Searched full:exception (Results 1 – 25 of 16923) sorted by relevance

12345678910>>...677

/external/selinux/libsemanage/src/
Dsemanageswig_python_exception.i2 %exception semanage_reload_policy {
10 %exception semanage_get_hll_compiler_path {
18 %exception semanage_get_disable_dontaudit {
26 %exception semanage_set_default_priority {
34 %exception semanage_is_managed {
42 %exception semanage_connect {
50 %exception semanage_disconnect {
58 %exception semanage_begin_transaction {
66 %exception semanage_commit {
74 %exception semanage_access_check {
[all …]
/external/selinux/libselinux/src/
Dselinuxswig_python_exception.i2 %exception is_selinux_enabled {
10 %exception is_selinux_mls_enabled {
18 %exception getcon {
26 %exception getcon_raw {
34 %exception setcon {
42 %exception setcon_raw {
50 %exception getpidcon {
58 %exception getpidcon_raw {
66 %exception getprevcon {
74 %exception getprevcon_raw {
[all …]
/external/python/python-api-core/tests/unit/
Dtest_exceptions.py34 exception = exceptions.GoogleAPICallError("Testing")
35 exception.code = 600
36 assert str(exception) == "600 Testing"
37 assert exception.message == "Testing"
38 assert exception.errors == []
39 assert exception.response is None
48 exception = exceptions.GoogleAPICallError("Testing", [error], response=response)
49 exception.code = 600
50 assert str(exception) == "600 Testing"
51 assert exception.message == "Testing"
[all …]
/external/armnn/include/armnn/
DExceptions.hpp46 class Exception : public std::exception class
49 explicit Exception(const std::string& message);
51 /// exception with context
52 explicit Exception(const std::string& message,
55 /// preserving previous exception context
57 explicit Exception(const Exception& other,
68 class BackendUnavailableException : public Exception
71 using Exception::Exception;
80 class InvalidArgumentException : public Exception
83 using Exception::Exception;
[all …]
/external/ow2-asm/asm-util/src/test/java/org/objectweb/asm/util/
DCheckMethodAdapterTest.java69 Exception exception = assertThrows(IllegalArgumentException.class, visitTypeAnnotation); in testVisitTypeAnnotation_illegalTypeRef() local
70 assertEquals("Invalid type reference sort 0xff", exception.getMessage()); in testVisitTypeAnnotation_illegalTypeRef()
80 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_invisibleAnnotation_illegalParameterIndex() local
81 assertEquals("Invalid parameter index", exception.getMessage()); in testVisitParameterAnnotation_invisibleAnnotation_illegalParameterIndex()
91 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_visibleAnnotation_illegalParameterIndex() local
92 assertEquals("Invalid parameter index", exception.getMessage()); in testVisitParameterAnnotation_visibleAnnotation_illegalParameterIndex()
100 Exception exception = assertThrows(IllegalArgumentException.class, visitParameterAnnotation); in testVisitParameterAnnotation_illegalDescriptor() local
101 assertEquals("Invalid descriptor: '", exception.getMessage()); in testVisitParameterAnnotation_illegalDescriptor()
110 Exception exception = assertThrows(IllegalStateException.class, visitAttribute); in testVisitAttribute_afterEnd() local
111 assertEquals("Cannot visit elements after visitEnd has been called.", exception.getMessage()); in testVisitAttribute_afterEnd()
[all …]
DPrinterTest.java55 Exception exception = assertThrows(UnsupportedOperationException.class, visitModule); in testVisitModule_unsupportedByDefault() local
56 assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); in testVisitModule_unsupportedByDefault()
65 Exception exception = assertThrows(UnsupportedOperationException.class, visitNestHost); in testVisitNestHost_unsupportedByDefault() local
66 assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); in testVisitNestHost_unsupportedByDefault()
76 Exception exception = in testVisitClassTypeAnnotation_unsupportedByDefault() local
78 assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); in testVisitClassTypeAnnotation_unsupportedByDefault()
87 Exception exception = assertThrows(UnsupportedOperationException.class, visitNestMember); in testVisitNestMember_unsupportedByDefault() local
88 assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); in testVisitNestMember_unsupportedByDefault()
97 Exception exception = assertThrows(UnsupportedOperationException.class, visitPermittedSubclass); in testVisitPermittedSubclass_unsupportedByDefault() local
98 assertEquals(UNSUPPORTED_OPERATION_MESSAGE, exception.getMessage()); in testVisitPermittedSubclass_unsupportedByDefault()
[all …]
DCheckClassAdapterTest.java78 Exception exception = assertThrows(IllegalArgumentException.class, visit); in testVisit_illegalClassAccessFlag() local
79 assertEquals("Invalid access flags: 1048576", exception.getMessage()); in testVisit_illegalClassAccessFlag()
88 Exception exception = assertThrows(IllegalArgumentException.class, visit); in testVisit_illegalClassName() local
89 assertEquals("Illegal class name (null)", exception.getMessage()); in testVisit_illegalClassName()
99 Exception exception = assertThrows(IllegalArgumentException.class, visit); in testVisit_nonJavaIdentifierClassNamePre15() local
101 "Invalid class name (must be an internal class name): class name", exception.getMessage()); in testVisit_nonJavaIdentifierClassNamePre15()
123 Exception exception = assertThrows(IllegalArgumentException.class, visit); in testVisit_illegalSuperClass() local
124 assertEquals("The super class name of the Object class must be 'null'", exception.getMessage()); in testVisit_illegalSuperClass()
136 Exception exception = assertThrows(IllegalArgumentException.class, visit); in testVisit_moduleInfoSuperClass() local
138 "The super class name of a module-info class must be 'null'", exception.getMessage()); in testVisit_moduleInfoSuperClass()
[all …]
/external/python/google-api-python-client/googleapiclient/discovery_cache/documents/
Dmybusinesslodging.v1.json213 "description": "Mobility accessible elevator exception.",
221 … "Default unspecified exception. Use this only if a more specific exception does not match.",
229 "description": "Mobility accessible exception.",
237 … "Default unspecified exception. Use this only if a more specific exception does not match.",
249 "description": "Mobility accessible parking exception.",
257 … "Default unspecified exception. Use this only if a more specific exception does not match.",
269 "description": "Mobility accessible pool exception.",
277 … "Default unspecified exception. Use this only if a more specific exception does not match.",
296 "description": "Beach access exception.",
304 … "Default unspecified exception. Use this only if a more specific exception does not match.",
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithThrowablesTest.java46 public ExpectedException exception = ExpectedException.none(); field in StubbingWithThrowablesTest
97 public void shouldStubWithThrowable() throws Exception { in shouldStubWithThrowable()
101 exception.expect(sameInstance(expected)); in shouldStubWithThrowable()
106 public void shouldSetThrowableToVoidMethod() throws Exception { in shouldSetThrowableToVoidMethod()
111 exception.expect(sameInstance(expected)); in shouldSetThrowableToVoidMethod()
118 public void shouldLastStubbingVoidBeImportant() throws Exception { in shouldLastStubbingVoidBeImportant()
122 exception.expect(ExceptionTwo.class); in shouldLastStubbingVoidBeImportant()
128 …c void shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation() throws Exception { in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
131 exception.expect(ExceptionOne.class); in shouldFailStubbingThrowableOnTheSameInvocationDueToAcceptableLimitation()
137 public void shouldAllowSettingCheckedException() throws Exception { in shouldAllowSettingCheckedException()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
DInvokeMethodTest.java48 * Case 2: nonvirtual child method without exception and nonvirtual super method without exception
144 TaggedObject exception = reply.getNextValueAsTaggedObject(); in makeNewInstance() local
145 logWriter.println(" ClassType.NewInstance: exception.tag=" in makeNewInstance()
146 + exception.tag + " exception.objectID=" + exception.objectID); in makeNewInstance()
154 assertTrue("exception must be != null", exception != null); in makeNewInstance()
155 assertTrue("exception.objectID must be == 0", exception.objectID == 0); in makeNewInstance()
156 assertEquals("Invalid exception.tag,", JDWPConstants.Tag.OBJECT_TAG, exception.tag in makeNewInstance()
158 , JDWPConstants.Tag.getName(exception.tag)); in makeNewInstance()
169 * which should not throw any Exception, and checks,
171 * exception object is null;
[all …]
/external/python/cpython3/Doc/library/
Dexceptions.rst12 clause that mentions a particular class, that clause also handles any exception
13 classes derived from that class (but not exception classes from which *it* is
14 derived). Two exception classes that are not related via subclassing are never
23 code). The associated value is usually passed as arguments to the exception
26 User code can raise built-in exceptions. This can be used to test an exception
28 interpreter raises the same exception; but beware that there is nothing to
31 The built-in exception classes can be subclassed to define new exceptions;
32 programmers are encouraged to derive new exceptions from the :exc:`Exception`
38 Exception context
41 When raising a new exception while another exception
[all …]
/external/ImageMagick/Magick++/lib/Magick++/
DException.h6 // Definition of Magick::Exception and derived classes
8 // 'exception' class for convenience.
18 #include <exception>
22 class MagickPPExport Exception: public std::exception
27 Exception(const std::string& what_);
29 // Construct with message string and nested exception
30 Exception(const std::string& what_, Exception* nested_);
33 Exception(const Exception& original_);
36 virtual ~Exception() throw();
39 Exception& operator=(const Exception& original_);
[all …]
/external/python/cpython2/Doc/library/
Dexceptions.rst7 :synopsis: Standard exception classes.
20 clause that mentions a particular class, that clause also handles any exception
21 classes derived from that class (but not exception classes from which *it* is
22 derived). Two exception classes that are not related via subclassing are never
32 :keyword:`raise` statement. If the exception class is derived from the standard
34 exception instance's :attr:`args` attribute.
36 User code can raise built-in exceptions. This can be used to test an exception
38 interpreter raises the same exception; but beware that there is nothing to
41 The built-in exception classes can be subclassed to define new exceptions;
42 programmers are encouraged to derive new exceptions from the :exc:`Exception`
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/
DXPathException.java28 * This class implements an exception object that all
63 /** A nested exception.
65 protected Exception m_exception;
140 * the error originated from, and another exception
141 * that caused this exception.
144 * @param e The exception that caused this exception.
146 public XPathException(String message, Node styleNode, Exception e) in XPathException()
157 * an error message, and another exception
158 * that caused this exception.
160 * @param e The exception that caused this exception.
[all …]
/external/sfntly/cpp/src/sfntly/port/
Dexception_type.h24 #include <exception>
30 class Exception : public std::exception {
32 Exception() : what_("Unknown exception") {} in Exception() function
33 explicit Exception(const char* message) throw() { SetMessage(message); } in Exception() function
34 virtual ~Exception() throw() {} in ~Exception()
48 class IndexOutOfBoundException : public Exception {
50 IndexOutOfBoundException() throw() : Exception("Index out of bound") {} in IndexOutOfBoundException()
52 : Exception(message) {} in IndexOutOfBoundException()
65 class IOException : public Exception {
67 IOException() throw() : Exception("I/O exception") {} in IOException()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DDefaultErrorHandler.java47 * if this flag is set to true, we will rethrow the exception on
112 * @param exception The warning information encapsulated in a
113 * SAX parse exception.
114 * @throws SAXException Any SAX exception, possibly
115 * wrapping another exception.
117 public void warning(SAXParseException exception) throws SAXException in warning() argument
121 printLocation(pw, exception); in warning()
122 pw.println("Parser warning: " + exception.getMessage()); in warning()
141 * @param exception The error information encapsulated in a
142 * SAX parse exception.
[all …]
/external/python/cpython2/Lib/xml/sax/
D_exceptions.py4 from java.lang import Exception
9 class SAXException(Exception):
16 the exception; instead, you can simply read the information in
19 def __init__(self, msg, exception=None): argument
20 """Creates an exception. The message is required, but the exception
23 self._exception = exception
24 Exception.__init__(self, msg)
27 "Return a message for this exception."
31 "Return the embedded exception, or None if there was none."
35 "Create a string representation of the exception."
[all …]
/external/python/cpython3/Lib/xml/sax/
D_exceptions.py4 from java.lang import Exception
9 class SAXException(Exception):
16 the exception; instead, you can simply read the information in
19 def __init__(self, msg, exception=None): argument
20 """Creates an exception. The message is required, but the exception
23 self._exception = exception
24 Exception.__init__(self, msg)
27 "Return a message for this exception."
31 "Return the embedded exception, or None if there was none."
35 "Create a string representation of the exception."
[all …]
/external/llvm/docs/
DExceptionHandling.rst2 Exception Handling in LLVM
12 exception handling in LLVM. It describes the format that LLVM exception
15 provides specific examples of what exception handling information is used for in
18 Itanium ABI Zero-cost Exception Handling
21 Exception handling for most programming languages is designed to recover from
23 exception handling should not interfere with the main flow of an application's
27 The Itanium ABI Exception Handling Specification defines a methodology for
28 providing outlying data in the form of exception tables without inlining
29 speculative exception handling code in the flow of an application's main
33 A more complete description of the Itanium ABI exception handling runtime
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DGattClientFacade.java78 public BluetoothAdapter call() throws Exception { in GattClientFacade()
106 * @throws Exception
116 throws Exception { in gattClientConnectGatt()
127 throw new Exception("Invalid index input:" + Integer.toString(index)); in gattClientConnectGatt()
136 * @throws Exception
140 throws Exception { in gattClientDiscoverServices()
144 throw new Exception("Invalid index input:" + Integer.toString(index)); in gattClientDiscoverServices()
154 * @throws Exception
158 @RpcParameter(name = "uuid") String uuid) throws Exception { in gattClientDiscoverServiceByUuid()
165 throw new Exception("Invalid index input:" + Integer.toString(index)); in gattClientDiscoverServiceByUuid()
[all …]
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsInOrderCheckerTest.java39 public ExpectedException exception = ExpectedException.none(); field in NumberOfInvocationsInOrderCheckerTest
57 public void shouldPassIfChunkMatches() throws Exception { in shouldPassIfChunkMatches()
64 public void shouldReportTooLittleInvocations() throws Exception { in shouldReportTooLittleInvocations()
71 exception.expect(VerificationInOrderFailure.class); in shouldReportTooLittleInvocations()
72 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleInvocations()
73 exception.expectMessage("Wanted 4 times"); in shouldReportTooLittleInvocations()
74 exception.expectMessage("But was 2 times"); in shouldReportTooLittleInvocations()
80 public void shouldMarkAsVerifiedInOrder() throws Exception { in shouldMarkAsVerifiedInOrder()
92 public void shouldReportTooLittleActual() throws Exception { in shouldReportTooLittleActual()
96 exception.expect(VerificationInOrderFailure.class); in shouldReportTooLittleActual()
[all …]
/external/autotest/utils/frozen_chromite/lib/
Dfailures_lib.py21 class StepFailure(Exception):
33 # The constants.EXCEPTION_CATEGORY_ALL_CATEGORIES values that this exception
62 # A namedtuple to hold information of an exception.
67 def CreateExceptInfo(exception, tb): argument
68 """Creates a list of ExceptInfo objects from |exception| and |tb|.
70 Creates an ExceptInfo object from |exception| and |tb|. If
71 |exception| is a CompoundFailure with non-empty list of exc_infos,
72 simly returns exception.exc_infos. Note that we do not preserve type
73 of |exception| in this case.
76 exception: The exception.
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFakeTimeLimiterTest.java39 protected void setUp() throws Exception { in setUp()
44 public void testCallWithTimeout_propagatesReturnValue() throws Exception { in testCallWithTimeout_propagatesReturnValue()
52 public void testCallWithTimeout_wrapsCheckedException() throws Exception { in testCallWithTimeout_wrapsCheckedException()
53 Exception exception = new SampleCheckedException(); in testCallWithTimeout_wrapsCheckedException() local
55 timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS); in testCallWithTimeout_wrapsCheckedException()
58 assertThat(e.getCause()).isEqualTo(exception); in testCallWithTimeout_wrapsCheckedException()
62 public void testCallWithTimeout_wrapsUncheckedException() throws Exception { in testCallWithTimeout_wrapsUncheckedException()
63 Exception exception = new RuntimeException("test"); in testCallWithTimeout_wrapsUncheckedException() local
65 timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS); in testCallWithTimeout_wrapsUncheckedException()
68 assertThat(e.getCause()).isEqualTo(exception); in testCallWithTimeout_wrapsUncheckedException()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFakeTimeLimiterTest.java39 protected void setUp() throws Exception { in setUp()
44 public void testCallWithTimeout_propagatesReturnValue() throws Exception { in testCallWithTimeout_propagatesReturnValue()
52 public void testCallWithTimeout_wrapsCheckedException() throws Exception { in testCallWithTimeout_wrapsCheckedException()
53 Exception exception = new SampleCheckedException(); in testCallWithTimeout_wrapsCheckedException() local
55 timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS); in testCallWithTimeout_wrapsCheckedException()
58 assertThat(e.getCause()).isEqualTo(exception); in testCallWithTimeout_wrapsCheckedException()
62 public void testCallWithTimeout_wrapsUncheckedException() throws Exception { in testCallWithTimeout_wrapsUncheckedException()
63 Exception exception = new RuntimeException("test"); in testCallWithTimeout_wrapsUncheckedException() local
65 timeLimiter.callWithTimeout(callableThrowing(exception), DELAY_MS, TimeUnit.MILLISECONDS); in testCallWithTimeout_wrapsUncheckedException()
68 assertThat(e.getCause()).isEqualTo(exception); in testCallWithTimeout_wrapsUncheckedException()
[all …]
/external/python/mobly/tests/mobly/
Dasserts_test.py20 MSG_EXPECTED_EXCEPTION = 'This is an expected exception.'
42 self.assertEqual(cm.exception.details, '1 == 1')
47 self.assertEqual(cm.exception.details, '1 == 1 Message')
48 self.assertEqual(cm.exception.extras, 'Extras')
57 self.assertRegex(cm.exception.details, r'1 != 1\.0005 within 7 places')
66 self.assertRegex(cm.exception.details, r'1 != 2 within 0\.1 delta.*Message')
67 self.assertEqual(cm.exception.extras, 'Extras')
76 self.assertRegex(cm.exception.details, r'1 == 1\.0005 within 3 places')
85 self.assertRegex(cm.exception.details, r'1 == 2 within 1 delta.*Message')
86 self.assertEqual(cm.exception.extras, 'Extras')
[all …]

12345678910>>...677