MaskNotFound masks not found error.
(err error)
| 234 | |
| 235 | // MaskNotFound masks not found error. |
| 236 | func MaskNotFound(err error) error { |
| 237 | if IsNotFound(err) { |
| 238 | return nil |
| 239 | } |
| 240 | return err |
| 241 | } |
| 242 | |
| 243 | // NotSingularError returns when trying to fetch a singular entity and more then one was found in the database. |
| 244 | type NotSingularError struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…