org.apache.hadoop.hdfs.protocol
Class QuotaExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.hadoop.hdfs.protocol.QuotaExceededException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DSQuotaExceededException, NSQuotaExceededException

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class QuotaExceededException
extends IOException

This exception is thrown when modification to HDFS results in violation of a directory quota. A directory quota might be namespace quota (limit on number of files and directories) or a diskspace quota (limit on space taken by all the file under the directory tree).

The message for the exception specifies the directory where the quota was violated and actual quotas. Specific message is generated in the corresponding Exception class: DSQuotaExceededException or NSQuotaExceededException

See Also:
Serialized Form

Field Summary
protected  long count
           
protected  String pathName
           
protected  long quota
           
protected static long serialVersionUID
           
 
Constructor Summary
protected QuotaExceededException()
           
protected QuotaExceededException(long quota, long count)
           
protected QuotaExceededException(String msg)
           
 
Method Summary
 String getMessage()
           
 void setPathName(String path)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

pathName

protected String pathName

quota

protected long quota

count

protected long count
Constructor Detail

QuotaExceededException

protected QuotaExceededException()

QuotaExceededException

protected QuotaExceededException(String msg)

QuotaExceededException

protected QuotaExceededException(long quota,
                                 long count)
Method Detail

setPathName

public void setPathName(String path)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2009 The Apache Software Foundation