Activities of "enisn"

If exception is inherited from Business exception and it has errorcode, exception detail text will be displayed from resources, exception message won't be displayed in UI automatically. You have to add a resource for errorcode of your exception

Hi @learnabp, I can't see UserFriendlyException but I'll suggest something below. If you already construct your exception same, please share your exception class too.


Make sure your exception is a DomainException and it has an error code and your localization json files have a resource with that error code as key.

You can examine 'AuthorAlreadyExistsException' in this sample

Hi @Leonardo.Willrich

As I understand, You don't want to change entire menu for tenant or host, just show/hide some menu items for host/tenant.

At this line I can show you a workaround:

  //if (_currentTenant.IsAvailable) // How to do it? Or what is the best way to do that?**
 if(_currentTenant.Id != null)
 {
   // tenant side
 }
 else
 {
  // host side
 }

Host doesn't have Id and it'll be null for host. Honestly, It's not best way or recommended to check host tenant but might help for you.

Showing 821 to 823 of 823 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.