C# Class Rebel.Framework.Localization.ExceptionHelper

Helper for localizing exception messages.
Show file Open project: RebelCMS/rebelcmsxu5

Private Properties

Property Type Description

Public Methods

Method Description
AddParameter ( string name, object value ) : ExceptionHelper
ExceptionHelper ( Exception forException, string key, string defaultMessage, object parameters ) : System
GetMessage ( string baseMessage ) : string

Gets the message.

Method Details

AddParameter() public method

public AddParameter ( string name, object value ) : ExceptionHelper
name string
value object
return ExceptionHelper

ExceptionHelper() public method

public ExceptionHelper ( Exception forException, string key, string defaultMessage, object parameters ) : System
forException System.Exception
key string
defaultMessage string
parameters object
return System

GetMessage() public method

Gets the message.
public GetMessage ( string baseMessage ) : string
baseMessage string The base exceptions message to allow framework texts if not default message is specified.
return string