internal void SetFailure(Enum.ParseFailureKind failure, string failureParameter) { this.m_failure = failure; this.m_failureParameter = failureParameter; if (this.canThrow) { throw this.GetEnumParseException(); } }
internal void SetFailure(Enum.ParseFailureKind failure, string failureMessageID, object failureMessageFormatArgument) { this.m_failure = failure; this.m_failureMessageID = failureMessageID; this.m_failureMessageFormatArgument = failureMessageFormatArgument; if (this.canThrow) { throw this.GetEnumParseException(); } }
internal void SetFailure(Exception unhandledException) { this.m_failure = Enum.ParseFailureKind.UnhandledException; this.m_innerException = unhandledException; }