- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 496 for Throwables (0.09 seconds)
-
guava/src/com/google/common/util/concurrent/Platform.java
@GwtCompatible final class Platform { static boolean isInstanceOfThrowableClass( @Nullable Throwable t, Class<? extends Throwable> expectedClass) { return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
assertNull(exception.getCause()); } @Test @DisplayName("Should create RuntimeCIFSException with cause") void testConstructorWithCause() { // Given Throwable cause = new IllegalArgumentException("Invalid argument"); // When RuntimeCIFSException exception = new RuntimeCIFSException(cause); // Then assertNotNull(exception);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionException.java
List<String> path, Throwable t) { super(message, groupId, artifactId, version, type, classifier, remoteRepositories, path, t); } public ArtifactResolutionException( String message, String groupId, String artifactId, String version, String type, String classifier, Throwable t) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MavenException.java
public MavenException() {} public MavenException(String message) { super(message); } public MavenException(String message, Throwable cause) { super(message, cause); } public MavenException(Throwable cause) { super(cause); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 21:57:56 GMT 2025 - 1.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
/** * Tests for SMBProtocolDecodingException covering all constructors and observable behavior. */ @ExtendWith(MockitoExtension.class) public class SMBProtocolDecodingExceptionTest { @Mock Throwable mockCause; @Test @DisplayName("No-arg constructor: null message and cause; can be thrown") void defaultConstructor_behavesAsExpected() { // Arrange & ActCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
} @Test void messageAndCauseConstructor_setsMessageAndCause_withoutInteractingWithCause() { // Arrange - mock cause to verify no interactions are needed to construct Throwable cause = Mockito.mock(Throwable.class); String message = "forced downgrade detected"; // Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(message, cause);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
@Test @DisplayName("Mocked cause: no interactions occur when stored as cause") void mockedCause_isStored_withoutInteraction() { // Arrange Throwable mocked = mock(Throwable.class); // Act SMBSignatureValidationException ex = new SMBSignatureValidationException("msg", mocked); // AssertCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/ClSQLException.java
* @param args * Array of arguments * @param cause * The cause of the exception */ public ClSQLException(final String messageCode, final Object[] args, final Throwable cause) { this(messageCode, args, null, 0, cause, null); } /** * Creates a {@link ClSQLException}. * * @param messageCode * Message code * @param argsCreated: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Jul 05 00:11:05 GMT 2025 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
} } /** * Asserts that the given throwable has the given class and then asserts on the message as using * the full set of method parameters. */ private void assertFailureCause( Throwable throwable, Class<? extends Throwable> clazz, Object[] params) { assertThat(throwable).isInstanceOf(clazz); if (params.length == 1) { assertThat(throwable).hasMessageThat().isNull();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 19K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/ArtifactDeploymentException.java
public ArtifactDeploymentException(String message) { super(message); } public ArtifactDeploymentException(Throwable cause) { super(cause); } public ArtifactDeploymentException(String message, Throwable cause) { super(message, cause); }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.2K bytes - Click Count (0)