14af9a21c0
* Fix regression for file opening * Standardize exceptions raised by django-webpack-loader. Make WebpackError the main exception, and have the rest of the exceptions inherit form it. * Create base exception
36 lines
700 B
Python
36 lines
700 B
Python
__all__ = (
|
|
'WebpackError',
|
|
'WebpackLoaderBadStatsError',
|
|
'WebpackLoaderTimeoutError',
|
|
'WebpackBundleLookupError'
|
|
)
|
|
|
|
|
|
class BaseWebpackLoaderException(Exception):
|
|
"""
|
|
Base exception for django-webpack-loader.
|
|
"""
|
|
|
|
|
|
class WebpackError(BaseWebpackLoaderException):
|
|
"""
|
|
General webpack loader error.
|
|
"""
|
|
|
|
|
|
class WebpackLoaderBadStatsError(BaseWebpackLoaderException):
|
|
"""
|
|
The stats file does not contain valid data.
|
|
"""
|
|
|
|
|
|
class WebpackLoaderTimeoutError(BaseWebpackLoaderException):
|
|
"""
|
|
The bundle took too long to compile.
|
|
"""
|
|
|
|
|
|
class WebpackBundleLookupError(BaseWebpackLoaderException):
|
|
"""
|
|
The bundle name was invalid.
|
|
"""
|