// Use this for initialization void Start () { textComponent = textbox.GetComponent<TextBox>(); textComponent.setText("Play fetch with me!"); pbar = bar.GetComponent<PetBar>(); pbutton = button.GetComponent<PetButton>(); buttonThrower = button.GetComponent<Throwable>(); animator = dog.GetComponent<Animator> (); }
private void Awake() { Give(PrimaryWeapon); // Start with weapon loaded PrimaryWeaponAmmo -= primaryWeapon.ClipCapacity; primaryWeapon.SetClipRemaining(primaryWeapon.ClipCapacity); throwingGrenadeGameObject = (GameObject)Instantiate(ThrowingGrenade, Vector3.zero, Quaternion.identity); throwingGrenadeGameObject.transform.parent = transform; throwingGrenade = throwingGrenadeGameObject.GetComponent<Throwable>(); throwingGrenade.InitWeapon(); throwingGrenade.OnThrow += OnThrowGrenade; InitKillable(new Vector3(0, 1, 0)); animator = transform.GetComponent<Animator>(); //animationControl = transform.FindChild("NewDude").GetComponent<Animation>(); //torso = transform.FindChild("NewDude").FindChild("Pelvis").FindChild("Chest"); }
/** * Constructs a new {@code InvocationTargetException} instance with its * cause / target exception filled in. * * @param exception * the exception which occurred while running the Method or * Constructor */ public InvocationTargetException(java.lang.Throwable exception) : base(null, exception) { target = exception; }
public UndeclaredThrowableException(Throwable arg0, String arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;Ljava/lang/String;)V", arg0, arg1); }
/// <summary> /// Creates a {@code CertStoreException} with the specified detail /// message and cause. /// </summary> /// <param name="msg"> the detail message </param> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="#getCause getCause()"/> method). (A {@code null} value is /// permitted, and indicates that the cause is nonexistent or unknown.) </param> public CertStoreException(String msg, Throwable cause) : base(msg, cause) { }
public LambdaConversionException(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
/// <summary> /// Constructor for the <c>InstantiationException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public InstantiationException(Throwable cause, String text, Object... list) { super(cause, text, list); }
/// <summary> /// Constructs a <code>SQLTransientException</code> object /// with a given /// <code>reason</code> and <code>cause</code>. /// The <code>SQLState</code> is initialized to <code>null</code> /// and the vendor code is initialized to 0. /// <para> /// </para> /// </summary> /// <param name="reason"> a description of the exception. </param> /// <param name="cause"> the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating /// the cause is non-existent or unknown. /// @since 1.6 </param> public SQLNonTransientException(String reason, Throwable cause) : base(reason, cause) { }
public IllegalArgumentException(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
public PageRenderingException(int page, Throwable cause) : base(cause) { this.Page = page; }
public static void main(string[] args) { NISTAlign nistalign = new NISTAlign(true, true); System.Exception ex4 = null; try { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(args[0]))); BufferedReader bufferedReader2 = new BufferedReader(new InputStreamReader(new FileInputStream(args[1]))); try { for (;;) { string text = bufferedReader.readLine(); string text2 = bufferedReader2.readLine(); if (text == null) { break; } if (text2 == null) { break; } nistalign.align(text, text2); nistalign.printNISTSentenceSummary(); } } catch (IOException) { } } catch (System.Exception ex2) { ex4 = ex2; goto IL_80; } goto IL_85; IL_80: System.Exception ex5 = ex4; goto IL_A6; IL_85: System.Exception ex8 = null; try { nistalign.printNISTTotalSummary(); } catch (System.Exception ex6) { ex8 = ex6; goto IL_A0; } return; IL_A0: ex5 = ex8; IL_A6: java.lang.System.err.println(ex5); Throwable.instancehelper_printStackTrace(ex5); [email protected](); [email protected]("Usage: align <reference file> <hypothesis file>"); [email protected](); }
/// <summary> /// Constructor for the <c>InvalidFormatException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the stri /// </param> public InvalidFormatException(Throwable cause, String text, Object... list) { super(String.format(text, list), cause); }
public SecurityException(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
/// <summary> /// Constructor for the <c>PersistenceException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public PersistenceException(Throwable cause, String text, Object... list) { super(String.format(text, list), cause); }
public InternalError(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
public ExceptionInInitializerError(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
public UnsupportedOperationException(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
protected ThrowAction( Unit owner, Throwable source, string name ) : base(owner, source, name, ActionSubjectType.GridTile) { oneUse = true; }
public void OnFailure(ICall p0, Throwable p1) { repository.dalCheckCallback.OnDataNotAvailable(p1.Message); }
public void Interact() { if (carryState == CarryState.NOT_CARRYING) { if (status.debugging) { Debug.DrawRay(transform.position + transform.up * 0.5f, transform.forward * pickupRaycastDistance, Color.magenta, 0.3f); } RaycastHit hit; Ray pickupRay = new Ray(transform.position + transform.up * 0.5f, transform.forward); if (Physics.Raycast(pickupRay, out hit, pickupRaycastDistance)) { if (hit.collider.tag == "Throwable") { // Object is a throwable, pick it up GameObject obj = hit.collider.gameObject; heldObject = obj.GetComponent<Throwable>(); carryState = CarryState.CARRYING; heldObject.BeInteractedWith(gameObject, carryPosition); } } } else if (carryState == CarryState.CARRYING) { carryState = CarryState.NOT_CARRYING; heldObject.GetThrown(transform.forward * throwStrength); heldObject = null; audioScript.Throw(); } }
/// <summary> /// Creates a {@code CertificateParsingException} with the /// specified cause and a detail message of /// {@code (cause==null ? null : cause.toString())} /// (which typically contains the class and detail message of /// {@code cause}). /// </summary> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="#getCause()"/> method). (A {@code null} value is permitted, /// and indicates that the cause is nonexistent or unknown.) /// @since 1.5 </param> public CertificateParsingException(Throwable cause) : base(cause) { }
public DOMException(string message = "", long code = 0, Throwable previous = null) : base(message, code, previous) { }
/** * Constructs a new {@code InvocationTargetException} instance with its * cause / target exception and message filled in. * * @param detailMessage * the detail message for the exception * @param exception * the exception which occurred while running the Method or * Constructor */ public InvocationTargetException(Throwable exception, String detailMessage) : base(detailMessage, exception) { target = exception; }
/// <summary> /// Constructor for the <c>ConstructorException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public ConstructorException(Throwable cause, String text, Object... list) { super(cause, text, list); }
public static void logException(Throwable t) { getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, "Unhandled exception", t)); }
/// <summary> /// Constructor for the <c>ElementException</c> object. This /// constructor takes a format string an a variable number of object /// arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public ElementException(Throwable cause, String text, Object... list) { super(cause, text, list); }
public BootstrapMethodError(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
public AssertionError(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
public BootstrapMethodError(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
/// <summary> /// Creates a {@code CertStoreException} that wraps the specified /// throwable. This allows any exception to be converted into a /// {@code CertStoreException}, while retaining information about the /// cause, which may be useful for debugging. The detail message is /// set to ({@code cause==null ? null : cause.toString()}) (which /// typically contains the class and detail message of cause). /// </summary> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="#getCause getCause()"/> method). (A {@code null} value is /// permitted, and indicates that the cause is nonexistent or unknown.) </param> public CertStoreException(Throwable cause) : base(cause) { }
/// <summary> /// Constructs a <code>SQLRecoverableException</code> object /// with a given /// <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code> /// and <code>cause</code>. /// <para> /// </para> /// </summary> /// <param name="reason"> a description of the exception </param> /// <param name="SQLState"> an XOPEN or SQL:2003 code identifying the exception </param> /// <param name="vendorCode"> a database vendor-specific exception code </param> /// <param name="cause"> the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating /// the cause is non-existent or unknown. /// @since 1.6 </param> public SQLRecoverableException(String reason, String SQLState, int vendorCode, Throwable cause) : base(reason, SQLState, vendorCode, cause) { }
private void AndroidEnvironmentUnhandledExceptionRaiser(object sender, RaiseThrowableEventArgs e) { ProcessException(Throwable.FromException(e.Exception)); }
public override void OnFailed(Throwable throwable) { base.OnFailed(throwable); }
public void OnFailure(ICall p0, Throwable p1) { }
public void OnFailure(ICall call, Throwable response) { repository.mDalService.Check(repository.webDomain, PERMISSION_HANDLE_ALL_URLS, repository.packageName, repository.fingerprint); }
public void Throw(Throwable ex) { JniHandle ptr = ex.jvmHandle; Throw(ptr); }
public void UncaughtException(Thread t, Throwable e) {
/** * Log a message * * @param level One of DEBUG, INFO, WARN, ERROR, FATAL * @param obj1 The object to log. This is Converted to a string. * @param exception An exception to be logged */ public void log(int level, Object obj1, Throwable exception) { if (level == FATAL) { if (log.IsFatalEnabled()) { if (obj1 != null) log.Fatal(obj1, exception); else log.Fatal(exception); } } else if (level == ERROR) { if (log.IsErrorEnabled()) { if (obj1 != null) log.Error(obj1, exception); else log.Error(exception); } } else if (level == WARN) { if (log.IsWarnEnabled()) { if (obj1 != null) log.Warn(obj1, exception); else log.Warn(exception); } } else if (level == INFO) { if (log.IsInfoEnabled()) { if (obj1 != null) log.Info(obj1, exception); else log.Info(exception); } } else if (level == DEBUG) { if (log.IsDebugEnabled()) { if (obj1 != null) log.Debug(obj1, exception); else log.Debug(exception); } } else { if (log.IsTraceEnabled()) { if (obj1 != null) log.Trace(obj1, exception); else log.Trace(exception); } } }
/// <summary> /// Creates a {@code CertificateParsingException} with the specified /// detail message and cause. /// </summary> /// <param name="message"> the detail message (which is saved for later retrieval /// by the <seealso cref="#getMessage()"/> method). </param> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="#getCause()"/> method). (A {@code null} value is permitted, /// and indicates that the cause is nonexistent or unknown.) /// @since 1.5 </param> public CertificateParsingException(String message, Throwable cause) : base(message, cause) { }
public Error(string message = "", long code = 0, Throwable previous = null) { __construct(message, code, previous); }
/// <summary> /// Constructs a <code>SQLNonTransientException</code> object /// with a given <code>cause</code>. /// The <code>SQLState</code> is initialized /// to <code>null</code> and the vendor code is initialized to 0. /// The <code>reason</code> is initialized to <code>null</code> if /// <code>cause==null</code> or to <code>cause.toString()</code> if /// <code>cause!=null</code>. /// <para> /// </para> /// </summary> /// <param name="cause"> the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating /// the cause is non-existent or unknown. /// @since 1.6 </param> public SQLNonTransientException(Throwable cause) : base(cause) { }
public void __construct(string message = "", long code = 0, Throwable previous = null) { this.message = message; this.code = code; }
/// <summary> /// Constructs a <code>SQLNonTransientException</code> object /// with a given /// <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code> /// and <code>cause</code>. /// <para> /// </para> /// </summary> /// <param name="reason"> a description of the exception </param> /// <param name="SQLState"> an XOPEN or SQL:2003 code identifying the exception </param> /// <param name="vendorCode"> a database vendor-specific exception code </param> /// <param name="cause"> the underlying reason for this <code>SQLException</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating /// the cause is non-existent or unknown. /// @since 1.6 </param> public SQLNonTransientException(String reason, String SQLState, int vendorCode, Throwable cause) : base(reason, SQLState, vendorCode, cause) { }
@Override public void onError(Throwable e) { e.printStackTrace(); }
public IllegalStateException(Throwable arg0) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/Throwable;)V", arg0); }
private static void InternalSend(IntPtr info, bool synchronization) { ObjectAuxiliary.Call <MailClient>(info, (smtp, arguments) => { do { NSJSVirtualMachine machine = arguments.VirtualMachine; if (arguments.Length <= 0) { Throwable.ArgumentException(machine); break; } MailMessage message = null; try { message = ObjectAuxiliary.ToMailMessage(arguments[0]); } catch (Exception exception) { Throwable.Exception(machine, exception); break; } if (message == null) { Throwable.ArgumentNullException(machine); break; } if (synchronization) { arguments.SetReturnValue(smtp.Send(message)); } else { NSJSFunction function = arguments.Length > 1 ? arguments[1] as NSJSFunction : null; Action <Exception> callbackt = null; if (function != null) { callbackt = (exception) => machine.Join((sender, state) => function.Call(new[] { Throwable.FormatMessage(exception) })); function.CrossThreading = true; } arguments.SetReturnValue(smtp.SendAsync(message, callbackt)); } } while (false); }); }
void Start() { es = EventSystem.current; rb = GetComponent<Rigidbody2D>(); motor = GetComponent<PlayerMotor>(); anim = GetComponent<Animator>(); throwable = GetComponent<Throwable>(); audioSource = GetComponent<AudioSource>(); GameObject globalGM = GameObject.FindGameObjectWithTag("globalGM"); if (globalGM != null) { cameraBackToPositionTime = globalGM.GetComponent<UIManager>().fadeTime; } halfBackTime = new WaitForSeconds(cameraBackToPositionTime / 2); fullBackTime = new WaitForSeconds(cameraBackToPositionTime); blinkTimeWFS = new WaitForSeconds(blinkTime); lookUpTimeWFS = new WaitForSeconds(lookUpTime); wait = false; alive = true; canLoad = true; canTouch = true; StartCoroutine(WaitAtStart()); time = 0; }
public NITFSRuntimeException(Throwable throwable) { base(throwable); log(this.getMessage()); }
public ClassNotFoundException(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
public NITFSRuntimeException(String messageID, String parameters, Throwable throwable) { base(Logging.getMessage(messageID) + parameters, throwable); log(this.getMessage()); }
public LambdaConversionException(String arg0, Throwable arg1) : base(ProxyCtor.I) { Instance.CallConstructor("(Ljava/lang/String;Ljava/lang/Throwable;)V", arg0, arg1); }
public void OnFailure(Throwable p0) { Failure?.Invoke(p0); }
/// <summary> /// Constructor for the <c>ValueRequiredException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public ValueRequiredException(Throwable cause, String text, Object... list) { super(cause, text, list); }
/// <summary> /// Constructs an InvalidPreferencesFormatException with the specified /// cause. /// </summary> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="Throwable#getCause()"/> method). </param> public InvalidPreferencesFormatException(Throwable cause) : base(cause) { }
/// <summary> /// Constructor for the <c>TransformException</c> object. /// This constructor takes a format string an a variable number of /// object arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the stri /// </param> public TransformException(Throwable cause, String text, Object... list) { super(String.format(text, list), cause); }
/// <summary> /// Constructs an InvalidPreferencesFormatException with the specified /// detail message and cause. /// </summary> /// <param name="message"> the detail message. The detail message is saved for /// later retrieval by the <seealso cref="Throwable#getMessage()"/> method. </param> /// <param name="cause"> the cause (which is saved for later retrieval by the /// <seealso cref="Throwable#getCause()"/> method). </param> public InvalidPreferencesFormatException(String message, Throwable cause) : base(message, cause) { }
/// <summary> /// Constructor for the <c>AttributeException</c> object. This /// constructor takes a format string an a variable number of object /// arguments, which can be inserted into the format string. /// </summary> /// <param name="cause"> /// the source exception this is used to represent /// </param> /// <param name="text"> /// a format string used to present the error message /// </param> /// <param name="list"> /// a list of arguments to insert into the string /// </param> public AttributeException(Throwable cause, String text, Object... list) { super(cause, text, list); }
public override void deserializeBody(InputStream stream, TLContext context) { Throwable.__ <suppressFillInStackTrace>(); throw new UnsupportedOperationException("Unable to deserialize invokeAfterMsg#-878758099"); }