Package org.sikuli.script
Class FindFailed
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.sikuli.script.SikuliException
-
- org.sikuli.script.FindFailed
-
- All Implemented Interfaces:
java.io.Serializable
public class FindFailed extends org.sikuli.script.SikuliException
SikuliX FindFailed exception
constants and settings for the features
FindFailedResponse
FindFailedHandler
ImageMissingHandler- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.sikuli.script.FindFailedResponse
ABORT
FindFailedResponse ABORT: should abort the SikuliX applicationstatic org.sikuli.script.FindFailedResponse
HANDLE
FindFailedResponse HANDLE: should call a handlersetFindFailedHandler(Object)
on FindFailedstatic org.sikuli.script.FindFailedResponse
PROMPT
FindFailedResponse PROMPT: should display a prompt dialog with the failing image having the options retry, skip and abortstatic org.sikuli.script.FindFailedResponse
RETRY
FindFailedResponse RETRY: should retry the find op on FindFailedstatic org.sikuli.script.FindFailedResponse
SKIP
FindFailedResponse SKIP: should silently continue on FindFailed
-
Constructor Summary
Constructors Constructor Description FindFailed(java.lang.String message)
the exception
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
getFindFailedHandler()
static java.lang.Object
getImageMissingHandler()
static org.sikuli.script.FindFailedResponse
getResponse()
static void
reset()
reset all: response ABORT, findFailedHandler null, imageMissingHandler nullstatic void
resetFindFailedHandler()
reset to default: no handler, response ABORTstatic void
resetImageMissingHandler()
reset to default: no handlerstatic void
resetResponse()
reset to defaultsetResponse(FindFailedResponse)
static void
setFindFailedHandler(java.lang.Object handler)
Global FindFailedHandler for newRegion
s
default: nonestatic void
setImageMissingHandler(java.lang.Object handler)
Global ImageMissingHandler for newRegion
s
default: nonestatic void
setResponse(org.sikuli.script.FindFailedResponse response)
Global FindFailedResponse for newRegion
s
ABORT - abort script on FindFailed
SKIP - ignore FindFailed
PROMPT - display prompt on FindFailed to let user decide how to proceed
RETRY - continue to wait for appearence after FindFailed
HANDLE - (set implicit) call a handler on exceptionsetFindFailedHandler(Object)
default: ABORT
-
-
-
Field Detail
-
PROMPT
public static final org.sikuli.script.FindFailedResponse PROMPT
FindFailedResponse PROMPT: should display a prompt dialog with the failing image having the options retry, skip and abort
-
RETRY
public static final org.sikuli.script.FindFailedResponse RETRY
FindFailedResponse RETRY: should retry the find op on FindFailed
-
SKIP
public static final org.sikuli.script.FindFailedResponse SKIP
FindFailedResponse SKIP: should silently continue on FindFailed
-
ABORT
public static final org.sikuli.script.FindFailedResponse ABORT
FindFailedResponse ABORT: should abort the SikuliX application
-
HANDLE
public static final org.sikuli.script.FindFailedResponse HANDLE
FindFailedResponse HANDLE: should call a handlersetFindFailedHandler(Object)
on FindFailed
-
-
Method Detail
-
reset
public static void reset()
reset all: response ABORT, findFailedHandler null, imageMissingHandler null
-
setResponse
public static void setResponse(org.sikuli.script.FindFailedResponse response)
Global FindFailedResponse for newRegion
s
ABORT - abort script on FindFailed
SKIP - ignore FindFailed
PROMPT - display prompt on FindFailed to let user decide how to proceed
RETRY - continue to wait for appearence after FindFailed
HANDLE - (set implicit) call a handler on exceptionsetFindFailedHandler(Object)
default: ABORT- Parameters:
response
-FindFailed
-
resetResponse
public static void resetResponse()
reset to defaultsetResponse(FindFailedResponse)
-
getResponse
public static org.sikuli.script.FindFailedResponse getResponse()
- Returns:
- the current setting
setResponse(FindFailedResponse)
-
setFindFailedHandler
public static void setFindFailedHandler(java.lang.Object handler)
Global FindFailedHandler for newRegion
s
default: none- Parameters:
handler
-ObserverCallBack
-
resetFindFailedHandler
public static void resetFindFailedHandler()
reset to default: no handler, response ABORT
-
getFindFailedHandler
public static java.lang.Object getFindFailedHandler()
- Returns:
- the current handler
-
setImageMissingHandler
public static void setImageMissingHandler(java.lang.Object handler)
Global ImageMissingHandler for newRegion
s
default: none- Parameters:
handler
-ObserverCallBack
-
resetImageMissingHandler
public static void resetImageMissingHandler()
reset to default: no handler
-
getImageMissingHandler
public static java.lang.Object getImageMissingHandler()
- Returns:
- the current handler
-
-