Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.developmentontheedge.jobcontrol
Class JobControlException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              com.developmentontheedge.jobcontrol.JobControlException

All Implemented Interfaces:
  java.io.Serializable

public class JobControlException
extends java.lang.Exception

JobControlException is used jointly with JobControl objects. This exception is occured when job wants to terminate job process.

See Also:
  `JobControl`, Serialized Form

Constructor Summary
`JobControlException(int status)` Constructs JobControlException with specified status
`JobControlException(int status, java.lang.String msg)` Constructs JobControlException with specified status and message
`JobControlException(java.lang.Throwable error)` Constructs JobControlException with specified exception

Method Summary
`java.lang.Throwable` | `getError()` Returns occured exception or `null`
`int` | `getStatus()` Returns status of termination

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

### JobControlException

    public JobControlException(int status,
                               java.lang.String msg)

  Constructs JobControlException with specified status and message

Parameters:
  `status` - specified status
  `msg` - specified message

### JobControlException

    public JobControlException(int status)

  Constructs JobControlException with specified status

Parameters:
  `status` - specified status

### JobControlException

    public JobControlException(java.lang.Throwable error)

  Constructs JobControlException with specified exception

Parameters:
  `error` - exception that occured during job process

Method Detail

### getStatus

    public int getStatus()

  Returns status of termination

  Returns:
    - `JobControl.TERMINATED_BY_ERROR`
    or
    - `JobControl.TERMINATED_BY_REQUEST`

### getError

    public java.lang.Throwable getError()

  Returns occured exception or `null`

  Returns:
    occured exception or `null`

Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.