ErrorHandlerCollection
on(Type errorType, middlewareA, [middlewareB = nothing, middlewareC = nothing, middlewareD = nothing, middlewareE = nothing, middlewareF = nothing, middlewareG = nothing, middlewareH = nothing, middlewareI = nothing, middlewareJ = nothing, middlewareK = nothing, middlewareL = nothing, middlewareM = nothing, middlewareN = nothing, middlewareO = nothing, middlewareP = nothing, middlewareQ = nothing, middlewareR = nothing, middlewareS = nothing, middlewareT = nothing, middlewareU = nothing, middlewareV = nothing, middlewareW = nothing, middlewareX = nothing, middlewareY = nothing, middlewareZ = nothing])
Source
static ErrorHandlerCollection on(Type errorType, middlewareA, [middlewareB = nothing, middlewareC = nothing,
middlewareD = nothing, middlewareE = nothing, middlewareF = nothing, middlewareG = nothing,
middlewareH = nothing, middlewareI = nothing, middlewareJ = nothing, middlewareK = nothing,
middlewareL = nothing, middlewareM = nothing, middlewareN = nothing, middlewareO = nothing,
middlewareP = nothing, middlewareQ = nothing, middlewareR = nothing, middlewareS = nothing,
middlewareT = nothing, middlewareU = nothing, middlewareV = nothing, middlewareW = nothing,
middlewareX = nothing, middlewareY = nothing, middlewareZ = nothing]) {
final Iterable middlewareTokens = [middlewareA, middlewareB,
middlewareC, middlewareD, middlewareE, middlewareF, middlewareG, middlewareH,
middlewareI, middlewareJ, middlewareK, middlewareL, middlewareM, middlewareN,
middlewareO, middlewareP, middlewareQ, middlewareR, middlewareS, middlewareT,
middlewareU, middlewareV, middlewareW, middlewareX, middlewareY, middlewareZ
].where((m) => m != nothing);
return new ErrorHandlerCollection({errorType: pipeActual(resolveMiddleware(middlewareTokens))});
}