Prolog Cafe v1.2

jp.ac.kobe_u.cs.prolog.lang
Class PermissionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jp.ac.kobe_u.cs.prolog.lang.PrologException
                  extended by jp.ac.kobe_u.cs.prolog.lang.BuiltinException
                      extended by jp.ac.kobe_u.cs.prolog.lang.PermissionException
All Implemented Interfaces:
java.io.Serializable

public class PermissionException
extends BuiltinException

Permission error.
There will be a permission error when it is not permitted to perform a specific operation.

See Also:
Serialized Form

Field Summary
 Term culprit
          Holds the argument or one of its components which caused the error.
 java.lang.String message
          Holds a string representation of detail message.
 java.lang.String operation
          Holds a string representation of operation.
static SymbolTerm PERMISSION_ERROR
          A functor symbol of permission_error/5.
 java.lang.String permissionType
          Holds a string representation of permission type.
 
Fields inherited from class jp.ac.kobe_u.cs.prolog.lang.BuiltinException
argNo, goal
 
Constructor Summary
PermissionException(Predicate _goal, java.lang.String _operation, java.lang.String _permissionType, Term _culprit, java.lang.String _message)
          Constructs a new PermissionException with the given arguments.
 
Method Summary
 Term getMessageTerm()
          Returns a term representation of this PermissionException: permission_error(goal,argNo,operation,permissionType,culprit,message).
 java.lang.String toString()
          Returns a string representation of this PermissionException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERMISSION_ERROR

public static SymbolTerm PERMISSION_ERROR
A functor symbol of permission_error/5.


operation

public java.lang.String operation
Holds a string representation of operation.


permissionType

public java.lang.String permissionType
Holds a string representation of permission type.


culprit

public Term culprit
Holds the argument or one of its components which caused the error.


message

public java.lang.String message
Holds a string representation of detail message.

Constructor Detail

PermissionException

public PermissionException(Predicate _goal,
                           java.lang.String _operation,
                           java.lang.String _permissionType,
                           Term _culprit,
                           java.lang.String _message)
Constructs a new PermissionException with the given arguments.

Method Detail

getMessageTerm

public Term getMessageTerm()
Returns a term representation of this PermissionException: permission_error(goal,argNo,operation,permissionType,culprit,message).

Overrides:
getMessageTerm in class BuiltinException

toString

public java.lang.String toString()
Returns a string representation of this PermissionException.

Overrides:
toString in class java.lang.Throwable

Prolog Cafe v1.2

Copyright (C) 1997-2008 M.BANBARA and N.TAMURA