Home / Class/ ChannelException Class — netty Architecture

ChannelException Class — netty Architecture

Architecture documentation for the ChannelException class in ChannelException.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  23b483ca_bd45_cf72_cf30_d9c0927c03f1["ChannelException"]
  cf4424c7_eb95_881a_d8dc_5d3187ead1bb["ChannelException.java"]
  23b483ca_bd45_cf72_cf30_d9c0927c03f1 -->|defined in| cf4424c7_eb95_881a_d8dc_5d3187ead1bb
  f7961180_261e_f259_abfa_8adfd56e70ad["ChannelException()"]
  23b483ca_bd45_cf72_cf30_d9c0927c03f1 -->|method| f7961180_261e_f259_abfa_8adfd56e70ad

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/ChannelException.java lines 24–80

public class ChannelException extends RuntimeException {

    private static final long serialVersionUID = 2908618315971075004L;

    /**
     * Creates a new exception.
     */
    public ChannelException() {
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(String message) {
        super(message);
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(Throwable cause) {
        super(cause);
    }

    protected ChannelException(String message, Throwable cause, boolean shared) {
        super(message, cause, false, true);
        assert shared;
    }

    static ChannelException newStatic(String message, Class<?> clazz, String method) {
        ChannelException exception = new StacklessChannelException(message, null, true);
        return ThrowableUtil.unknownStackTrace(exception, clazz, method);
    }

    private static final class StacklessChannelException extends ChannelException {
        private static final long serialVersionUID = -6384642137753538579L;

        StacklessChannelException(String message, Throwable cause, boolean shared) {
            super(message, cause, shared);
        }

        // Override fillInStackTrace() so we not populate the backtrace via a native call and so leak the
        // Classloader.

        @Override
        public Throwable fillInStackTrace() {
            return this;
        }
    }
}

Frequently Asked Questions

What is the ChannelException class?
ChannelException is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelException.java.
Where is ChannelException defined?
ChannelException is defined in transport/src/main/java/io/netty/channel/ChannelException.java at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free