question: public static boolean isUniqueContraintError ( Exception e ) { if ( DB . isPostgreSQL ( ) ) return isSQLState ( e , "23505" ) ; return isErrorCode ( e , 1 ) ; }
target:  Check if Unique Constraint Exception (aka ORA-00001)