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

package io.netty.handler.codec.http3;

final class Http3PushStreamFrameTypeValidator implements Http3FrameTypeValidator
{
    static final Http3PushStreamFrameTypeValidator INSTANCE;
    
    private Http3PushStreamFrameTypeValidator() {
    }
    
    @Override
    public void validate(final long type, final boolean first) throws Http3Exception {
        switch ((int)type) {
            case 3:
            case 4:
            case 5:
            case 7:
            case 13: {
                throw new Http3Exception(Http3ErrorCode.H3_FRAME_UNEXPECTED, "Unexpected frame type '" + type + "' received");
            }
            default: {}
        }
    }
    
    static {
        INSTANCE = new Http3PushStreamFrameTypeValidator();
    }
}
