public static boolean isUniqueContraintError(Exception e){
  if (DB.isPostgreSQL())   return isSQLState(e,"23505");
  return isErrorCode(e,1);
}

public static boolean isUniqueContraintError ( Exception e ) { if ( DB . isPostgreSQL ( ) ) return isSQLState ( e , "23505" ) ; return isErrorCode ( e , 1 ) ; }
check if unique constraint exception ( aka ora - 00001 )
