Home
last modified time | relevance | path

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

12345678910>>...685

/external/selinux/libsemanage/src/
Dsemanageswig_python_exception.i2 %exception semanage_reload_policy {
11 %exception semanage_get_hll_compiler_path {
20 %exception semanage_get_disable_dontaudit {
29 %exception semanage_set_default_priority {
38 %exception semanage_is_managed {
47 %exception semanage_connect {
56 %exception semanage_disconnect {
65 %exception semanage_begin_transaction {
74 %exception semanage_commit {
83 %exception semanage_access_check {
[all …]
/external/selinux/libselinux/src/
Dselinuxswig_python_exception.i2 %exception is_selinux_enabled {
11 %exception is_selinux_mls_enabled {
20 %exception getcon {
29 %exception getcon_raw {
38 %exception setcon {
47 %exception setcon_raw {
56 %exception getpidcon {
65 %exception getpidcon_raw {
74 %exception getprevcon {
83 %exception getprevcon_raw {
[all …]
/external/llvm-project/polly/lib/External/isl/include/isl/
Dcpp.h86 class exception : public std::exception {
90 inline exception(const char *what_arg, const char *msg,
93 exception() {} in exception() function
94 exception(const char *what_arg) { in exception() function
107 * will be included in the exception thrown from inside the bindings.
110 /* Wrapper for throwing an exception with the given message.
118 /* Create an exception of a type described by "what_arg", with
125 exception::exception(const char *what_arg, const char *msg, const char *file, in exception() function
135 class exception_abort : public exception {
136 friend exception; variable
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dhicpp-exception-baseclass.cpp1 // RUN: %check_clang_tidy %s hicpp-exception-baseclass %t -- -- -fcxx-exceptions
4 class exception {}; class
5 class invalid_argument : public exception {};
8 class derived_exception : public std::exception {};
16 class bad_inheritance : private std::exception {};
17 class no_good_inheritance : protected std::exception {};
18 class really_creative : public non_derived_exception, private std::exception {};
24 …-NOTES: [[@LINE-1]]:11: warning: throwing an exception whose type 'int' is not derived from 'std:: in problematic()
28 …K-NOTES: [[@LINE-1]]:9: warning: throwing an exception whose type 'int' is not derived from 'std:: in problematic()
32 …-NOTES: [[@LINE-1]]:11: warning: throwing an exception whose type 'int' is not derived from 'std:: in problematic()
[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/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`
37 When raising (or re-raising) an exception in an :keyword:`except` or
39 :attr:`__context__` is automatically set to the last exception caught; if the
[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/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/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/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/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/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/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/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/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 …]
DNumberOfInvocationsCheckerTest.java42 public ExpectedException exception = ExpectedException.none(); field in NumberOfInvocationsCheckerTest
48 public void shouldReportTooLittleActual() throws Exception { in shouldReportTooLittleActual()
52 exception.expect(TooLittleActualInvocations.class); in shouldReportTooLittleActual()
53 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleActual()
54 exception.expectMessage("Wanted 100 times"); in shouldReportTooLittleActual()
55 exception.expectMessage("But was 2 times"); in shouldReportTooLittleActual()
61 public void shouldReportAllInvocationsStackTrace() throws Exception { in shouldReportAllInvocationsStackTrace()
65 exception.expect(TooLittleActualInvocations.class); in shouldReportAllInvocationsStackTrace()
66 exception.expectMessage("mock.simpleMethod()"); in shouldReportAllInvocationsStackTrace()
67 exception.expectMessage("Wanted 100 times"); in shouldReportAllInvocationsStackTrace()
[all …]
/external/llvm-project/llvm/unittests/ObjectYAML/
DMinidumpYAMLTest.cpp5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
149 - Type: Exception in TEST()
151 Exception Record: in TEST()
152 Exception Code: 0x23 in TEST()
153 Exception Flags: 0x5 in TEST()
154 Exception Record: 0x0102030405060708 in TEST()
155 Exception Address: 0x0a0b0c0d0e0f1011 in TEST()
172 const minidump::Exception &Exception = Stream.ExceptionRecord; in TEST() local
173 EXPECT_EQ(0x23u, Exception.ExceptionCode); in TEST()
174 EXPECT_EQ(0x5u, Exception.ExceptionFlags); in TEST()
[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/llvm-project/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/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/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/llvm-project/polly/lib/External/isl/cpp/
Dcpp.h.pre62 class exception : public std::exception {
66 inline exception(const char *what_arg, const char *msg,
69 exception() {}
70 exception(const char *what_arg) {
83 * will be included in the exception thrown from inside the bindings.
86 /* Wrapper for throwing an exception with the given message.
94 /* Create an exception of a type described by "what_arg", with
101 exception::exception(const char *what_arg, const char *msg, const char *file,
111 class exception_abort : public exception {
112 friend exception;
[all …]
/external/ImageMagick/MagickCore/
Dexception.c13 % MagickCore Exception Methods %
45 #include "MagickCore/exception.h"
46 #include "MagickCore/exception-private.h"
118 *exception; in AcquireExceptionInfo() local
120 exception=(ExceptionInfo *) AcquireCriticalMemory(sizeof(*exception)); in AcquireExceptionInfo()
121 InitializeExceptionInfo(exception); in AcquireExceptionInfo()
122 exception->relinquish=MagickTrue; in AcquireExceptionInfo()
123 return(exception); in AcquireExceptionInfo()
137 % ClearMagickException() clears any exception that may not have been caught
142 % ClearMagickException(ExceptionInfo *exception)
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DSQLWarningTest.java41 Exception[] theExceptions = { null }; in testSQLWarning()
60 } catch (Exception e) { in testSQLWarning()
62 fail(i + "Unexpected exception"); in testSQLWarning()
64 assertEquals(i + "Exception mismatch", e.getClass(), in testSQLWarning()
66 assertEquals(i + "Exception mismatch", e.getMessage(), in testSQLWarning()
87 Exception[] theExceptions = { null, null, null, null, null, null, null, in testSQLWarningString()
107 } catch (Exception e) { in testSQLWarningString()
109 fail(i + "Unexpected exception"); in testSQLWarningString()
111 assertEquals(i + "Exception mismatch", e.getClass(), in testSQLWarningString()
113 assertEquals(i + "Exception mismatch", e.getMessage(), in testSQLWarningString()
[all …]

12345678910>>...685