/**
 * Autogenerated by Thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 */
package com.dgrid.gen;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import com.facebook.thrift.*;

import com.facebook.thrift.protocol.*;
import com.facebook.thrift.transport.*;

public class NoWorkAvailable extends Exception implements TBase, java.io.Serializable {
  public NoWorkAvailable() {
  }

  public boolean equals(Object that) {
    if (that == null)
      return false;
    if (that instanceof NoWorkAvailable)
      return this.equals((NoWorkAvailable)that);
    return false;
  }

  public boolean equals(NoWorkAvailable that) {
    if (that == null)
      return false;

    return true;
  }

  public int hashCode() {
    return 0;
  }

  public void read(TProtocol iprot) throws TException {
    TField field;
    iprot.readStructBegin();
    while (true)
    {
      field = iprot.readFieldBegin();
      if (field.type == TType.STOP) { 
        break;
      }
      switch (field.id)
      {
        default:
          TProtocolUtil.skip(iprot, field.type);
          break;
      }
      iprot.readFieldEnd();
    }
    iprot.readStructEnd();
  }

  public void write(TProtocol oprot) throws TException {
    TStruct struct = new TStruct("NoWorkAvailable");
    oprot.writeStructBegin(struct);
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

  public String toString() {
    StringBuilder sb = new StringBuilder("NoWorkAvailable(");
    sb.append(")");
    return sb.toString();
  }

}

