MCPcopy Create free account
hub / github.com/coregx/coregex / Error

Method Error

nfa/error.go:61–66  ·  view source on GitHub ↗

Error implements the error interface

()

Source from the content-addressed store, hash-verified

59
60// Error implements the error interface
61func (e *BuildError) Error() string {
62 if e.StateID != InvalidState {
63 return fmt.Sprintf("NFA build error at state %d: %s", e.StateID, e.Message)
64 }
65 return fmt.Sprintf("NFA build error: %s", e.Message)
66}

Callers 15

TestCopyFunction · 0.45
TestCopyWithLongestFunction · 0.45
TestUnmarshalTextInvalidFunction · 0.45
TestMatchReaderFunction · 0.45
TestCompileFunction · 0.45
TestMustCompileFunction · 0.45
TestFindFunction · 0.45
TestErrorMessageFormatFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestCopyFunction · 0.36
TestCopyWithLongestFunction · 0.36
TestUnmarshalTextInvalidFunction · 0.36
TestMatchReaderFunction · 0.36
TestCompileFunction · 0.36
TestMustCompileFunction · 0.36
TestFindFunction · 0.36
TestErrorMessageFormatFunction · 0.36