# Error, notice or alert box

**URL:** <https://forums.plex.tv/t/error-notice-or-alert-box/48226>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [November 29, 2013, 12:00pm UTC](https://forums.plex.tv/t/error-notice-or-alert-box/48226 "2013-11-29T12:00:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![realriot](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@realriot](https://forums.plex.tv/u/realriot)\
**Post date:** [November 29, 2013, 12:00pm UTC](https://forums.plex.tv/t/error-notice-or-alert-box/48226/1 "2013-11-29T12:00:54Z")

</div>

Is it possible to show an messagebox if an error something else occured what the user should know about? Didn't find a function within the api documentation.

&nbsp;

I've seen a popup message-box for choosing the video resultion...

&nbsp;

Greets

Sascha

---

<div class="post-metadata">

**Author:** ![shopgirl284](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@shopgirl284](https://forums.plex.tv/u/shopgirl284)\
**Post date:** [November 29, 2013, 7:35pm UTC](https://forums.plex.tv/t/error-notice-or-alert-box/48226/2 "2013-11-29T19:35:26Z")

</div>

I usually add this to the bottom of all of my Object containers. You can change the header and message to whatever you want to say in the title and message

```
if len(oc) < 1:
    Log ('still no value for objects')
    return ObjectContainer(header="Empty", message="There are no shows to list right now.")
  else:
    return oc
```

If I need it them to go to a particular place after the message, I usually make it a directory that goes to a function to fix it.

```
oc.add(DirectoryObject(key=Callback(URLError, url=url), title="Invalid or Incompatible URL", summary="The URL entered in the database was either incorrect or incompatible with this channel."))

###################################  
def URLError(url):

oc = ObjectContainer()

oc.add(DirectoryObject(key=Callback(EditShow, url=url), title=“Edit Feed”))

oc.add(DirectoryObject(key=Callback(DeleteShow, title=“Delete Feed”, url=url), title=“Delete Feed”, summary=“Delete this URL from your list of feeds”))

return oc
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:33am UTC](https://forums.plex.tv/t/error-notice-or-alert-box/48226/3 "2019-12-21T00:33:10Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
