Hi everyone,
When using 'apex_error.add_error' api to show error or warn message on apex page, we found that the css style of messages are displayed differently between raise exception and non exception.
The test source like following:
declare
eExp Exception;
begin
apex_error.add_error (
p_message =>'P2_ITEM2 : This is a normal error message!',
p_additional_info =>null,
p_display_location =>apex_error.c_inline_with_field_and_notif,
p_page_item_name=>'P2_ITEM2'
);
raise eExp;
exception
when others then
apex_error.add_error (
p_message =>'P2_ITEM1 : This is a exception error message!',
p_additional_info =>null,
p_display_location =>apex_error.c_inline_with_field_and_notif,
p_page_item_name=>'P2_ITEM1'
);
end;
And, the page displayed like following:

My question: is there any method to make the message displayed with the same css style?
Anyone can give a guide, thanks so much!