예제 #1
0
func (r RouteHandler) HandleInternalServerError(i interface{}) http.Handler {
	if r.HandleInternalServerError == nil {
		panic(fweight.Err(fweight.StatusInternalServerError))
	}
	return r.Recover.ServeRecover(i)
}
예제 #2
0
func (r RouteHandler) HandleNotFound(rq *http.Request) http.Handler {
	if r.NotFound == nil {
		panic(fweight.Err(fweight.StatusNotFound))
	}
	return r.NotFound
}