- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.types.PError
-
public final class PError extends Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.core.Value
Value.Type<T extends Value>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Values must override the default equals method.Optional<Exception>exception()Class<? extends Exception>exceptionType()static Optional<PError>from(Value arg)inthashCode()Values must override the default hashcode method.Stringmessage()static PErrorof(Class<? extends Exception> type, String msg)static PErrorof(Exception ex)static PErrorof(Exception ex, String msg)static PErrorof(String msg)static PErrorparse(String str)StringtoString()Values must override the default method to return a string representation that is immutable.
-
-
-
Method Detail
-
message
public String message()
-
toString
public String toString()
Description copied from class:ValueValues must override the default method to return a string representation that is immutable.
-
hashCode
public int hashCode()
Description copied from class:ValueValues must override the default hashcode method.
-
equals
public boolean equals(Object obj)
Description copied from class:ValueValues must override the default equals method. This method should only returntrueif the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee thatthis.equals(that) == this.toString().equals(that.toString())
-
parse
public static PError parse(String str) throws ValueFormatException
- Throws:
ValueFormatException
-
-