public static UnitResponse createTimeout ( Object dataOrException , String errMsg ) { return new UnitResponse ( ) . setCode ( Group . CODE_TIME_OUT ) . setData ( dataOrException ) . setMessage ( errMsg ) ; }
create a new timed out unit response .