LRDOCS-900 Edit Javadoc
LPS-43335 Set the attribute liferay-ui:error:exception only when is a instance of Exception
LPS-43335 getException method should return Object because there are some cases where we are passing Object that are not exceptions, like in EditFileEntryAction: SessionErrors.add(actionRequest, dle.getClass(), dle.getLock());