Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (20 sloc) 641 Bytes
#ifndef PHP_MUSTACHE_EXCEPTIONS_HPP
#define PHP_MUSTACHE_EXCEPTIONS_HPP
#ifdef __cplusplus
extern "C" {
#endif
extern zend_class_entry * MustacheException_ce_ptr;
extern zend_class_entry * MustacheParserException_ce_ptr;
PHP_MINIT_FUNCTION(mustache_exceptions);
void mustache_exception_handler(TSRMLS_D);
#ifdef __cplusplus
} // extern "C"
#endif
class PhpInvalidParameterException : public std::exception {
public:
};
class InvalidParameterException : public std::runtime_error {
public:
InvalidParameterException(const std::string& desc) : std::runtime_error(desc) { }
};
#endif /* PHP_MUSTACHE_EXCEPTIONS_HPP */
Something went wrong with that request. Please try again.