isViolation function
Whether it is PostgresqlException about the violation of the given code
.
Implementation
bool isViolation(ex, String code)
=> ex is PostgresqlException && ex.serverMessage?.code == code;
Whether it is PostgresqlException about the violation of the given code
.
bool isViolation(ex, String code)
=> ex is PostgresqlException && ex.serverMessage?.code == code;