@@ -0,0 +1,1226 @@
+/*%0A * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0%0A * (the %22License%22). You may not use this work except in compliance with the License, which is%0A * available at www.apache.org/licenses/LICENSE-2.0%0A *%0A * This software is distributed on an %22AS IS%22 basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,%0A * either express or implied, as more fully set forth in the License.%0A *%0A * See the NOTICE file distributed with this work for information regarding copyright ownership.%0A */%0A%0Apackage alluxio.worker.netty;%0A%0Aimport alluxio.exception.status.AlluxioStatusException;%0A%0Aimport javax.annotation.concurrent.ThreadSafe;%0A%0A/**%0A * A wrapper on an error used to pass error information from the netty I/O thread to the packet%0A * reader thread.%0A */%0A@ThreadSafe%0Aclass Error %7B%0A  final AlluxioStatusException mCause;%0A  final boolean mNotifyClient;%0A%0A  Error(AlluxioStatusException cause, boolean notifyClient) %7B%0A    mCause = cause;%0A    mNotifyClient = notifyClient;%0A  %7D%0A%0A  /**%0A   * @return the cause of this error%0A   */%0A  public AlluxioStatusException getCause() %7B%0A    return mCause;%0A  %7D%0A%0A  /**%0A   * @return whether to notify client%0A   */%0A  public boolean isNotifyClient() %7B%0A    return mNotifyClient;%0A  %7D%0A%7D%0A

Put Error out as a separate class