pub fn err(msg: &str) -> SolanaError
Creates a legacy error.
Use crate::Error variants instead.
crate::Error