Module vcr4j.core

Class SimpleVideoError

java.lang.Object
org.mbari.vcr4j.SimpleVideoError
All Implemented Interfaces:
VideoError

public class SimpleVideoError extends Object implements VideoError
Since:
2016-03-25T10:59:00
Author:
Brian Schlining
  • Constructor Details

    • SimpleVideoError

      public SimpleVideoError(boolean error, VideoCommand<?> videoCommand)
    • SimpleVideoError

      public SimpleVideoError(boolean error)
  • Method Details

    • getVideoCommand

      public Optional<VideoCommand<?>> getVideoCommand()
      Specified by:
      getVideoCommand in interface VideoError
      Returns:
      The command that triggered the error
    • hasError

      public boolean hasError()
      Specified by:
      hasError in interface VideoError
      Returns:
      true if an error condition occurred in response to a command