Package EOorg.EOeolang
Class EOerror
- java.lang.Object
-
- org.eolang.PhDefault
-
- EOorg.EOeolang.EOerror
-
public final class EOerror extends PhDefault
ERROR.This object you must return in case of any error. It is highly recommended to use
make(String, Object...)
method instead of its constructor.- Since:
- 0.22
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EOerror.ExError
This exception is thrown by theEOerror
object only.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Phi
make(String format, Object... params)
Ctor.static Phi
make(Throwable cause)
Ctor.static String
message(Throwable exp)
Make a message from an exception.
-
-
-
Constructor Detail
-
EOerror
public EOerror(Phi sigma)
Ctor.- Parameters:
sigma
- Sigma
-
-
Method Detail
-
make
public static Phi make(String format, Object... params)
Ctor.Use this method to build a new error object. Don't use the constructor here. This factory method is much more convenient.
- Parameters:
format
- Message format string, similar toString.format(String, Object...)
params
- Parameters, which will be passed to the formatter- Returns:
- The error object
-
make
public static Phi make(Throwable cause)
Ctor.Use this method to build a new error object. Don't use the constructor here. This factory method is much more convenient.
- Parameters:
cause
- The cause- Returns:
- The error object
-
-