Programming Jakarta Struts, 2nd Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Programming Jakarta Struts, 2nd Edition [Electronic resources] - نسخه متنی

Chuck Cavaness

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








12.4 Exception Handling and Internationalization


Exception handling was covered in detail
in Chapter 10, and as you saw, there are I18N
issues that need to be considered when building an exception-handling
framework for your application.

Unless you plan to localize the exception messages that are thrown,
you need to isolate the exception messages and be sure that they are
never shown to the end user. The one thing that is more frustrating
for an end user than getting an exception message or stack trace
printed out on the screen is getting one that is not in that
user's native language.

As Chapter 10 pointed out, exceptions should be
caught and localized messages should be displayed to the user. This
can be accomplished by using the Struts message resource bundle and
the ActionError class. You should never display a
Java exception to the end user. Even when there's a
system failure that can't be recovered from, you
should still have a system error page that is localized for the user.


    / 181