hudson.model
Class Descriptor.FormException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by hudson.model.Descriptor.FormException
All Implemented Interfaces:
Serializable, org.kohsuke.stapler.HttpResponse
Enclosing class:
Descriptor<T extends Describable<T>>

public static final class Descriptor.FormException
extends Exception
implements org.kohsuke.stapler.HttpResponse

See Also:
Serialized Form

Constructor Summary
Descriptor.FormException(String message, String formField)
           
Descriptor.FormException(String message, Throwable cause, String formField)
           
Descriptor.FormException(Throwable cause, String formField)
           
 
Method Summary
 void generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node)
           
 String getFormField()
          Which form field contained an error?
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Descriptor.FormException

public Descriptor.FormException(String message,
                                String formField)

Descriptor.FormException

public Descriptor.FormException(String message,
                                Throwable cause,
                                String formField)

Descriptor.FormException

public Descriptor.FormException(Throwable cause,
                                String formField)
Method Detail

getFormField

public String getFormField()
Which form field contained an error?


generateResponse

public void generateResponse(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp,
                             Object node)
                      throws IOException,
                             javax.servlet.ServletException
Specified by:
generateResponse in interface org.kohsuke.stapler.HttpResponse
Throws:
IOException
javax.servlet.ServletException


Copyright © 2004-2013. All Rights Reserved.