
mJ]c           @` s   d  Z  d d l m Z m Z m Z m Z d d l Z e j e  Z	 d Z
 d e f d     YZ d	 e f d
     YZ d e f d     YZ d S(   uO    Provide named exceptions having to do with handling Bokeh Protocol
messages.

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNu   MessageErroru   ProtocolErroru   ValidationErrort   MessageErrorc           B` s   e  Z d  Z RS(   u    Indicate an error in constructing a Bokeh Message object.

    This exception usually indicates that the JSON fragments of a message
    cannot be decoded at all.

    (   t   __name__t
   __module__t   __doc__(    (    (    s8   lib/python2.7/site-packages/bokeh/protocol/exceptions.pyR   0   s   t   ProtocolErrorc           B` s   e  Z d  Z RS(   u    Indicate an error in processing wire protocol fragments.

    This exception indicates that decoded message fragments cannot be properly
    assembled.

    (   R   R   R   (    (    (    s8   lib/python2.7/site-packages/bokeh/protocol/exceptions.pyR   9   s   t   ValidationErrorc           B` s   e  Z d  Z RS(   u    Indicate an error validating wire protocol fragments.

    This exception typically indicates that a binary message fragment was
    received when a text fragment was expected, or vice-versa.

    (   R   R   R   (    (    (    s8   lib/python2.7/site-packages/bokeh/protocol/exceptions.pyR	   B   s   (   u   MessageErroru   ProtocolErroru   ValidationError(   R   t
   __future__R    R   R   R   t   loggingt	   getLoggerR   t   logt   __all__t	   ExceptionR   R   R	   (    (    (    s8   lib/python2.7/site-packages/bokeh/protocol/exceptions.pyt   <module>
   s   "  		