Class RecognitionAbortedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aspose.barcode.barcoderecognition.BarCodeRecognitionException
com.aspose.barcode.barcoderecognition.RecognitionAbortedException
- All Implemented Interfaces:
Serializable
public class RecognitionAbortedException
extends BarCodeRecognitionException
implements Serializable
Represents recognition abort exception which is thrown in timeout exceeding during recognition with BarCodeReader.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of theclass with specified recognition abort message. RecognitionAbortedException(int executionTime) Initializes a new instance of theclass with specified recognition abort message. RecognitionAbortedException(String message, int executionTime) Initializes a new instance of theclass with specified recognition abort message. -
Method Summary
Modifier and TypeMethodDescriptionintGets the execution time of current recognition sessionvoidsetExecutionTime(int value) Sets the execution time of current recognition sessionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RecognitionAbortedException
public RecognitionAbortedException()Initializes a new instance of theclass with specified recognition abort message. -
RecognitionAbortedException
public RecognitionAbortedException(int executionTime) Initializes a new instance of theclass with specified recognition abort message. - Parameters:
executionTime- The execution time of current recognition session.
-
RecognitionAbortedException
Initializes a new instance of theclass with specified recognition abort message. - Parameters:
message- The error message of the exception.executionTime- The execution time of current recognition session.
-
-
Method Details
-
getExecutionTime
public int getExecutionTime()Gets the execution time of current recognition session- Returns:
- The execution time of current recognition session
-
setExecutionTime
public void setExecutionTime(int value) Sets the execution time of current recognition session- Parameters:
value- The execution time of current recognition session
-