Demo describes how to notify when error comes.