Custom error message for repository exception | Community
Skip to main content
October 16, 2015
Solved

Custom error message for repository exception

  • October 16, 2015
  • 4 replies
  • 1521 views

Hi,

I am getting below error message while trying to modify a template on which i don't have access from Tools page of AEM (expected). Can anyone point me how it can be modified to show my custom error message :

javax.jcr.RepositoryException: org.apache.sling.api.resource.PersistenceException: Resource at '/etc/scaffolding/ABCTemplate/jcr:content' is not modifiable.

 

Regards,

TD

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Love_Sharma

Hi,

Sham HC is ryt.

Better to talk with Admin guy to give you permission otherwise not possible.

Cheers,

Love Sharma

4 replies

Sham_HC
Level 10
October 16, 2015

If user do not have modify permissions how did he got to screen to modify?

Love_Sharma
Love_SharmaAccepted solution
Level 4
October 16, 2015

Hi,

Sham HC is ryt.

Better to talk with Admin guy to give you permission otherwise not possible.

Cheers,

Love Sharma

October 16, 2015

Hi Sham and Love,

I have a READ permission on folder and files inside that. When i am trying to modify the name of file i am getting repository exception (as expected). I would like to make error message user-friendly.

Cheers !! 

~TD

Sham_HC
Level 10
October 16, 2015

From which ui you are trying to rename?