ticket:3 modify exception
Merge branch 't3_middleware'