Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for errorCode (0.05 sec)

  1. src/test/java/jcifs/netbios/NbtExceptionTest.java

            int errorClass = NbtException.ERR_SSN_SRVC;
            int errorCode = NbtException.CONNECTION_REFUSED;
            NbtException exception = new NbtException(errorClass, errorCode);
    
            String expectedToString = "errorClass=" + errorClass + ",errorCode=" + errorCode + ",errorString="
                    + NbtException.getErrorString(errorClass, errorCode);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbOperationException.java

                // Ignore
            }
        }
    
        private static String formatMessage(ErrorCode errorCode, String message) {
            if (message == null || message.isEmpty()) {
                return String.format("[%s] %s", errorCode.name(), errorCode.getDescription());
            }
            return String.format("[%s] %s: %s", errorCode.name(), errorCode.getDescription(), message);
        }
    
        private String extractOperationName() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NbtException.java

         *
         * @param errorClass the NetBIOS error class
         * @param errorCode the NetBIOS error code
         */
        public NbtException(final int errorClass, final int errorCode) {
            super(getErrorString(errorClass, errorCode));
            this.errorClass = errorClass;
            this.errorCode = errorCode;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

            // Arrange
            int access = 1;
            int rid = 100;
            int errorCode = 0xC0000022; // Example error code
    
            // Mock the behavior of sendrecv for MsrpcSamrOpenAlias to simulate failure
            doAnswer(invocation -> {
                MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
                rpc.retval = errorCode; // Simulate failure
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NbtException.java

         * @param errorCode the NetBIOS error code
         */
        public NbtException(final int errorClass, final int errorCode) {
            super(getErrorString(errorClass, errorCode));
            this.errorClass = errorClass;
            this.errorCode = errorCode;
        }
    
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbException.java

         * @param errorCode the SMB error code
         * @param severity the error severity
         * @param category the error category
         * @param cause the cause exception
         */
        public SmbException(String message, int errorCode, Severity severity, Category category, Throwable cause) {
            super(message, cause);
            this.errorCode = errorCode;
            this.severity = severity;
            this.category = category;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

                "999,Unknown error code: 999" })
        @DisplayName("getErrorString for SSN service errors")
        void testSessionServiceErrors(int errorCode, String description) {
            int errSsn = NbtException.ERR_SSN_SRVC;
            String message = NbtException.getErrorString(errSsn, errorCode);
            assertTrue(message.contains(description));
        }
    
        @Test
        @DisplayName("getErrorString for unknown error class")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertTrue(SmbOperationException.ErrorCode.RESOURCE_LOCKED.isRetryable());
            assertTrue(SmbOperationException.ErrorCode.BUSY.isRetryable());
            assertTrue(SmbOperationException.ErrorCode.TRY_AGAIN.isRetryable());
            assertTrue(SmbOperationException.ErrorCode.SERVICE_UNAVAILABLE.isRetryable());
    
            // Non-retryable errors
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java

            // Arrange
            String server = "testServer";
            int access = 123;
            int errorCode = 12345;
    
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = errorCode; // Simulate RPC error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResourceException.java

        /**
         * Creates a resource exception
         *
         * @param message the error message
         * @param errorCode the SMB error code
         * @param resourceType the type of resource
         */
        public SmbResourceException(String message, int errorCode, ResourceType resourceType) {
            super(message, errorCode, Severity.TRANSIENT, Category.RESOURCE);
            this.resourceType = resourceType;
            this.availableResources = -1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top