All pastes #472471 Raw Edit

Luke6

public text v1 · immutable
·published 2007-05-05 16:34 UTC
rendered paste body
class FileEngine
    {
        private String path = "";

        public void LoadFile(String path)
        {
            this.path = path;
            StreamReader sr;

            try
            {
                sr = File.OpenText(this.path);
            }
            catch (FileNotFoundException e)
            {
                throw (new UserExcept("Brak pliku!\n" + e.Message)); //It stops on this line ....
            }
            catch (Exception e)
            {
                throw (new UserExcept(e.Message));
            }            
        }
    }