can i use this error style handle error?

I like this style to handle error,when error occured,controller take back last page and show error like attchment.

can i?

If you want to change the error display design (html), then you need to override errorSummary() method of CHtml helper class.

I hope this is what you are looking for.

thank you very much!