Package org.libvirt

Class ErrorHandler


  • public class ErrorHandler
    extends java.lang.Object
    Utility class which processes the last error from the libvirt library. It turns errors into Libvirt Exceptions.
    Author:
    bkearney
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorHandler()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void processError​(Libvirt libvirt)
      Look for the latest error from libvirt not tied to a connection
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorHandler

        public ErrorHandler()
    • Method Detail

      • processError

        public static void processError​(Libvirt libvirt)
                                 throws LibvirtException
        Look for the latest error from libvirt not tied to a connection
        Parameters:
        libvirt - the active connection
        Throws:
        LibvirtException