Package edu.suffolk.litlab.efspserver
Class StdLib
java.lang.Object
edu.suffolk.litlab.efspserver.StdLib
Things that really should just be in the standard lib.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
A way to close a stream without throwing another checked exception, which avoids having to read lots of nested try-catch blocks in business code.static boolean
A simple check to make sure something isn't null or blank.Quick wrapper to get an env var as an optional.static String
Adds the stack trace to an exception.
-
Constructor Details
-
StdLib
public StdLib()
-
-
Method Details
-
strFromException
Adds the stack trace to an exception. Default exception strings don't contain enough info to track down errors. -
GetEnv
Quick wrapper to get an env var as an optional. -
exists
A simple check to make sure something isn't null or blank. Used in a lot of places. -
closeQuitely
A way to close a stream without throwing another checked exception, which avoids having to read lots of nested try-catch blocks in business code.
-