Created
September 29, 2014 15:03
-
-
Save enreeco/2c103f0dbb7ba4f4851b to your computer and use it in GitHub Desktop.
Apex - Gets stacktrace of exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getStackTraceFromException(Exception e){ | |
return e.getStackTraceString().replace('\n',' | ')+' | '+e.getMessage().replace('\n',' '); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment