Class ErrorType

java.lang.Object
cruise.umple.parser.ErrorType

public class ErrorType
extends java.lang.Object
Represents an error type, which contains an error code, the severity of the error, etc. Error data is read from the en.error file
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorType​(int aErrorCode, int aSeverity, java.lang.String aErrorFormat, java.lang.String aErrorUrl)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    boolean equals​(java.lang.Object obj)  
    java.lang.String format​(java.util.List<java.lang.String> arguments)
    Formats error messages by replacing tokens {1}, {2}, ...
    int getErrorCode()
    The error code.
    java.lang.String getErrorFormat()  
    java.lang.String getErrorUrl()  
    int getSeverity()
    The severity of the error.
    int hashCode()  
    boolean setErrorCode​(int aErrorCode)  
    boolean setErrorFormat​(java.lang.String aErrorFormat)  
    boolean setErrorUrl​(java.lang.String aErrorUrl)  
    boolean setSeverity​(int aSeverity)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ErrorType

      public ErrorType​(int aErrorCode, int aSeverity, java.lang.String aErrorFormat, java.lang.String aErrorUrl)
  • Method Details

    • setErrorCode

      public boolean setErrorCode​(int aErrorCode)
    • setSeverity

      public boolean setSeverity​(int aSeverity)
    • setErrorFormat

      public boolean setErrorFormat​(java.lang.String aErrorFormat)
    • setErrorUrl

      public boolean setErrorUrl​(java.lang.String aErrorUrl)
    • getErrorCode

      public int getErrorCode()
      The error code.
    • getSeverity

      public int getSeverity()
      The severity of the error.
    • getErrorFormat

      public java.lang.String getErrorFormat()
    • getErrorUrl

      public java.lang.String getErrorUrl()
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • delete

      public void delete()
    • format

      public java.lang.String format​(java.util.List<java.lang.String> arguments)
      Formats error messages by replacing tokens {1}, {2}, ... with the corresponding positional arguments supplied in arguments
      Parameters:
      arguments - the arguments to insert into the tokens postion
      Returns:
      the formatted string
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object