$obj->getDDL(); if (!$obj->{ERROR_STR} { ##call other method }