MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / is_error

Method is_error

src/pgwire-common/src/severity.rs:23–25  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

21
22impl Severity {
23 pub fn is_error(&self) -> bool {
24 matches!(self, Severity::Panic | Severity::Fatal | Severity::Error)
25 }
26
27 pub fn is_fatal(&self) -> bool {
28 matches!(self, Severity::Fatal)

Callers 2

encode_innerMethod · 0.80
encode_innerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected