// 
// Decompiled by Procyon v0.6.0
// 

package io.netty.channel;

import io.netty.util.internal.ThrowableUtil;

public class ChannelException extends RuntimeException
{
    private static final long serialVersionUID = 2908618315971075004L;
    
    public ChannelException() {
    }
    
    public ChannelException(final String message, final Throwable cause) {
        super(message, cause);
    }
    
    public ChannelException(final String message) {
        super(message);
    }
    
    public ChannelException(final Throwable cause) {
        super(cause);
    }
    
    protected ChannelException(final String message, final Throwable cause, final boolean shared) {
        super(message, cause, false, true);
        assert shared;
    }
    
    static ChannelException newStatic(final String message, final Class<?> clazz, final String method) {
        final 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(final String message, final Throwable cause, final boolean shared) {
            super(message, cause, shared);
        }
        
        @Override
        public Throwable fillInStackTrace() {
            return this;
        }
    }
}
