How to handle "MoveToTarget Out of bounds exception" console error

I am trying to click the element, the test case gets passed and the element is not clicked on browser throws an error in console as " MoveToTargetOutofboundsexception".

You can catch any Exception by try … catch … finally syntax:

try {
    ....
} catch ( e ) {
    ...
}

Have a look at
http://groovy-lang.org/semantics.html#_exception_handling