question: private static MksTicketResponse checkGetMksTicketResponse ( MksTicketResponse mksTicketResponse ) throws RpcException { logger . info ( "Checking {}" , mksTicketResponse ) ; switch ( mksTicketResponse . getResult ( ) ) { case OK : break ; case SYSTEM_ERROR : throw new SystemErrorException ( mksTicketResponse . getError ( ) ) ; case VM_NOT_FOUND : throw new VmNotFoundException ( mksTicketResponse . getError ( ) ) ; case INVALID_VM_POWER_STATE : throw new InvalidVmPowerStateException ( mksTicketResponse . getError ( ) ) ; default : throw new RpcException ( String . format ( "Unknown result: %s" , mksTicketResponse . getResult ( ) ) ) ; } return mksTicketResponse ; }
target:  This method validates a MksTicketResponse object, raising an exception if the response reflects an operation failure.