- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for getErrorCode (0.06 sec)
-
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
} /** * Test getErrorCode() method. */ @Test void testGetErrorCode() { int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED DcerpcException exception = new DcerpcException(errorCode); assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code."); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
} @Test @DisplayName("Test Response interface methods - getErrorCode") void testGetErrorCode() { // Given int expectedErrorCode = 0xC0000001; when(response.getErrorCode()).thenReturn(expectedErrorCode); // When int actualErrorCode = response.getErrorCode(); // Then assertEquals(expectedErrorCode, actualErrorCode);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbWatchHandleImpl.java
log.trace("Returned from NtTransNotifyChange " + resp.getErrorCode()); } if (!resp.isReceived()) { throw new CIFSException("Did not receive response"); } if (resp.getErrorCode() == 0x10B) { this.handle.markClosed(); } if (resp.getErrorCode() == 0x10C) { resp.getNotifyInformation().clear();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
} @Test void testGetErrorCode() { // Simulate error code when(mockResponse.getErrorCode()).thenReturn(-1); assertEquals(-1, mockResponse.getErrorCode()); // Verify the method was called verify(mockResponse, times(1)).getErrorCode(); } @Test void testSetMid() { long mid = 12345L; mockResponse.setMid(mid);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
List<FileNotifyInformation> info = new ArrayList<>(); NotifyResponse resp = mock(NotifyResponse.class); when(resp.isReceived()).thenReturn(true); when(resp.getErrorCode()).thenReturn(0); when(resp.getNotifyInformation()).thenReturn(info); setupSmb2(resp, new byte[16]); SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0x1234, true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
original.withContext("attempt", 1); // When SmbOperationException retry = SmbOperationException.forRetry(original, 2); // Then assertEquals(original.getErrorCode(), retry.getErrorCode()); assertEquals(original.getMessage(), retry.getMessage()); assertEquals(original.getCause(), retry.getCause()); assertNotNull(retry.getContext()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
boolean cont = false; if (resp.getErrorCode() == 0x30002) { // if using DOS error codes this indicates a DFS referral resp.setErrorCode(NtStatus.NT_STATUS_PATH_NOT_COVERED); } else { resp.setErrorCode(SmbException.getStatusByCode(resp.getErrorCode())); } switch (resp.getErrorCode()) { case NtStatus.NT_STATUS_SUCCESS:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
*/ @Override public Exception getException() { return this.exception; } /** * * @return error status code */ @Override public final int getErrorCode() { return getStatus(); } /** * * @return whether signature verification failed */ @Override public final boolean isVerifyFailed() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
int access = 123; // Simulate DCERPC_FAULT_OP_RNG_ERROR for MsrpcSamrConnect4 doThrow(new DcerpcException("Operation range error") { @Override public int getErrorCode() { return DcerpcError.DCERPC_FAULT_OP_RNG_ERROR; } }).when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class)); // Subsequent call for MsrpcSamrConnect2 should succeed
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcException.java
super(msg, rootCause); } /** * Returns the DCE/RPC error code associated with this exception * * @return the error code */ public int getErrorCode() { return this.error; } /** * * @return the root cause * @deprecated use {@link #getCause()} */ @Deprecated public Throwable getRootCause() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0)