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