forked from FubuMvcArchive/FubuMVC.AssetTransforms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.less parsing errors now result in a ParserException
- Loading branch information
1 parent
c226907
commit 297a721
Showing
6 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using dotless.Core.Loggers; | ||
|
||
namespace FubuMVC.Less { | ||
public class ExceptionLogger : Logger { | ||
public ExceptionLogger() : base(LogLevel.Error) {} | ||
protected override void Log(string message) { | ||
throw new ParserException(message); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
|
||
namespace FubuMVC.Less { | ||
[Serializable] | ||
public class ParserException : Exception { | ||
// | ||
// For guidelines regarding the creation of new exception types, see | ||
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp | ||
// and | ||
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp | ||
// | ||
|
||
public ParserException() {} | ||
public ParserException(string message) : base(message) {} | ||
public ParserException(string message, Exception inner) : base(message, inner) {} | ||
|
||
protected ParserException( | ||
SerializationInfo info, | ||
StreamingContext context) : base(info, context) {} | ||
} | ||
|
||
} |