MCPcopy
hub / github.com/fastify/fastify / setSchemaErrorFormatter

Function setSchemaErrorFormatter

fastify.js:735–740  ·  fastify.js::setSchemaErrorFormatter
(errorFormatter)

Source from the content-addressed store, hash-verified

733 }
734
735 function setSchemaErrorFormatter (errorFormatter) {
736 throwIfAlreadyStarted(class="st">'Cannot call "setSchemaErrorFormatter"!')
737 validateSchemaErrorFormatter(errorFormatter)
738 this[kSchemaErrorFormatter] = errorFormatter.bind(this)
739 return this
740 }
741
742 function setSerializerCompiler (serializerCompiler) {
743 throwIfAlreadyStarted(class="st">'Cannot call "setSerializerCompiler"!')

Callers

nothing calls this directly

Calls 2

throwIfAlreadyStartedFunction · 0.85

Tested by

no test coverage detected