We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently this repo throws a default PHP \Exception. It should be better if we at-least provided a Wasm\Exception
\Exception
Wasm\Exception
Other possible exceptions:
Do note that currently we'll need to work around these limitations:
static mut WASM_EXCEPTION: Option<&'static ClassEntry> = None; #[php_startup] pub fn startup() { let ce_wasm_exception = ClassBuilder::new("Wasm\\Exception\\Exception") .extends(ce::exception()) .build() .expect("Invalid check"); unsafe { WASM_EXCEPTION.replace(ce_wasm_exception) }; } //--> Return PhpException::new(e.to_string(), 0, unsafe { WASM_EXCEPTION.expect("did not set exception ce") })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently this repo throws a default PHP
\Exception
.It should be better if we at-least provided a
Wasm\Exception
Other possible exceptions:
Do note that currently we'll need to work around these limitations:
The text was updated successfully, but these errors were encountered: